Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.

Best way to identify between different Form-Based Activities when there are multiple on a page?

Avatar

Level 2

I am delivering Recommendations with a Form-Based Activity to the global mbox and using the Delivery API to request it. The response is an array of objects representing each Activity and its content. Right now, I only have one Activity, so I've just been grabbing the first (only) object in that array.

 

However, I want to add a second Activity that does something different. I don't want to use `responseTokens` to identify the content by Activity ID, because I might want to create a new Activity in the future that serves the same function, and I don't want to have to update the ID in my site code. I want some way to identify each chunk of content by its purpose.

 

Is this a case where I should be using regional mboxes instead? I tried doing that before, and the Activity would deliver the correct content but it didn't report any data in Reports. After I changed to the global mbox, the Reports started showing up.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies