I could use some tips on setting dashboard contexts for an experience user page load.
At the moment, what I am doing is getting the device information for users devices along with the rest of the data passed to the page load in my workflow, and the the dashboard view is set up with the context {{ data.devices.[0].deviceId }}, but I am not getting it to load the correct device.
Am I doing it wrong?
My (slightly anonymized) debug from the endpoint reply:
I had a typo in my previous reply. Inside a page template, the workflow payload is placed on the pageData property, so your template would be {{ pageData.devices.[0].deviceId }}.
@Preben_Dyrholm I need to dig in and work on learning this new Experience Dashboard feature set.
Sounds like you are gathering the new user info, device ID, and other data on the signup page, right?
How is that working out?
Can you share a screenshot of the page your gathering this info from so I can get an idea of what’s possible?
I’m designing a signup page for a product that will have a dashboard that displays system status info. I’m going to need to ideally capture quite a few data points during the signup process for a new client and it sounds like your doing something similar.
Hi RWB, sorry for the late reply - I’ve actually yet to build that part I’m afraid, but will post something as soon as I do - what I do at the moment is simply to create a new device if a state command is received from Particle with a device ID that doesn’t match any current device. (I do a tag query for the Get Matching Devices, then in the check devices I check that {{ device_to_update }} !== null) I then assign it manually to the user.
The plan is to do this on user registration, either through an app, or through the web portal (denying creation of new user without a matching device ID already collected).
The workflow currently looks like this, just in case it gives you any ideas: