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!