Consolidate regional mbox into one global mbox | Community
Skip to main content
Level 3
July 15, 2023
Question

Consolidate regional mbox into one global mbox

  • July 15, 2023
  • 1 reply
  • 572 views

Hi Community,

I have multiple mbxoes in a page and want to consolidate them into one global mbox. The approach which I am trying is as follows:

Current Approach:

adobe.target.getOffers({
request: {
execute: {
mboxes: [
{
index: 1,
name: "second-mbox",
parameters: {
'entity.id': XXX
},
{
index: 1,
name: "second-mbox",
parameters: {
'entity.id': XXX
}

}
]
}
}
});

 

I read on community that I can leverage targerpageParams to pass the parameters to global mbox as I have entity id common to all regional mboxes

The Code which I am trying is:
Replacing above code with this:

targetPageParams = function () {
return {
parameters: {
'entity.id': XXX,

}
}
};

The code is not working. May I know anything I am missing here or any better approach I can try here.

Thanks in advance!

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

1 reply

alexbishop
Adobe Employee
Adobe Employee
July 24, 2023

I would expect that approach to work, so I'm wondering, what is the order of operations? i.e. is your targetPageParams code executed before the global mbox call is made