Update multiple entities in page load request | Community
Skip to main content
New Participant
September 1, 2021
Question

Update multiple entities in page load request

  • September 1, 2021
  • 1 reply
  • 1109 views

Hello Masters!

 

We are using Adobe Target Recommendations. We are updating entity attributes via page load request parameters, in the product detail page (we need updates more often than daily, so the feed is not enough).

 

We are trying to figure out if it is possible to update more than one entity in a single page request. For example, we would like to update the inventory for all those products included in the purchase, in the order confirmation page. This way, we can manage products which are sold out, as quickly as possible (don't need to wait to the next product detail page view).

 

Is that possible? Any idea? Thank you very much 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

New Participant
February 14, 2022

Hi Julio,

Did you get any luck on this thread?

 

Amelia_Waliany
Employee
August 25, 2023

Thanks for your question here Julio_Baixauli and for your +1 to it nbhart! I know the original question is almost two years old now but in case anyone wants to try to take a stab at it to close it out with deeper insights, please do 😊 Cheers!

CC our brilliant Advisors:  , and 

and our inspiring Mentors: @abhilashsape@Gokul_Agiwal@Rajneesh_Gautam_@PratheepArunRaj, and @Sneha-Parmar

Rajneesh_Gautam_
New Participant
September 3, 2023

Thanks @amelia_waliany for sharing this question.

 

@julio_baixauli @nbhart  -assuming you are using  orderComfirmPage mbox on Order Confirmation page, you can pass multiple product IDs under productPurchaseId attribute as shown in the example below 

 

<script type="text/javascript"> adobe.target.trackEvent({ "mbox": "orderConfirmPage", "params":{ "orderId": "ORDER ID FROM YOUR ORDER PAGE", "orderTotal": "ORDER TOTAL FROM YOUR ORDER PAGE", "productPurchasedId": "PRODUCT ID FROM YOUR ORDER PAGE, PRODUCT ID2, PRODUCT ID3" } }); </script>

 

If you are planning to use it on a different page e.g. Product listing pages where you have multiple products then you will have to pass the information for each product in separate mbox calls. One way to do is calling trackEvent() method for each product you would like to update using custom JavaScript code.

 

Hope this helps

 

Regards

Rajneesh