Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
BUI Analytics Extensions and Async — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

BUI Analytics Extensions and Async

Accepted answer
123
Views
9
Comments
edited Jun 13, 2022 4:12AM in General Technical Discussions 9 comments

Summary

Analytics extensions apparently do not work at all with async. What am I doing wrong?

Content

I have a very simple proof-of-concept analytics extension for BUI that returns one hard-coded row, containing a first and last name. The entire logic.js file is included below; there's also a schema.json file that defines two text columns. It's not included because I don't think it's relevant to my question.

The POC works fine...unless I want to populate my report with data fetched from an external service, which requires asynchronous requests. If all I do is make the sampleDataSupplier function async by writing

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!