How do I use mbox params in a dynamic offer? Docs are outdated. | Community
Skip to main content
MarinCa
Level 2
July 1, 2024
Solved

How do I use mbox params in a dynamic offer? Docs are outdated.

  • July 1, 2024
  • 2 replies
  • 784 views

Hi,

 

I am following this documentation: https://experienceleague.adobe.com/en/docs/target/using/experiences/offers/passing-profile-attributes-to-the-html-offer#example

 

I can show the campaign data and profile scripts (user) data but nothing from the global mbox (entity, profile, or arbitrary stuff). The documentation says to use `mboxCreate` which is deprecated.

 

I want to use the data in an Activity.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ryanr7

Hi @marinca,

True the mboxCreate example is outdated. I'll submit a request to update the doc. However, the syntax for using dynamic text in offers is still accurate. If you pass a custom parameter or a profile parameter in the global mbox (or pageLoad with at.js 2.x) it should be available for use with dynamic text. Can you share an example of the global mbox request and the content of your offer using dynamic text?

2 replies

Gokul_Agiwal
Community Advisor
Community Advisor
July 1, 2024

Hi @marinca 

You can make a use of an alternative to mboxCreate(mbox, params) is getOffer() and applyOffer().

How Do I Upgrade from at.js Version 1.x to Version 2.x? | Adobe Target 

How Do I Use the adobe.target.getOffer() Function? | Adobe Target 

 

Thanks

ryanr7Adobe EmployeeAccepted solution
Adobe Employee
July 2, 2024

Hi @marinca,

True the mboxCreate example is outdated. I'll submit a request to update the doc. However, the syntax for using dynamic text in offers is still accurate. If you pass a custom parameter or a profile parameter in the global mbox (or pageLoad with at.js 2.x) it should be available for use with dynamic text. Can you share an example of the global mbox request and the content of your offer using dynamic text?

MarinCa
MarinCaAuthor
Level 2
July 8, 2024

Thanks, I figured out how to get arbitrary mbox attributes to show up. I didn't have to use getOffer/applyOffer. I think I just had an unrelated conflict going on.