Capture the parameter value from Delivery API request in profile script | Community
Skip to main content
Level 2
December 8, 2023
Solved

Capture the parameter value from Delivery API request in profile script

  • December 8, 2023
  • 1 reply
  • 743 views

Hi,

 

is there a way to capture the request parameter in profile script from the delivery API request.

In the example below, I want to access product.id in the profile script. Please share an example on how to access the same.

 

 

 
 

 

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 Rajneesh_Gautam_

Hi @alexbishop  - thanks! While we traditionally pass the data from page/screen using mbox-parameters (or "parameters" in Delivery API), the documentation mentions a couple of additional attributes "order" and "product" (these are listed at the bottom of the screenshot below).

 

Looks like @divyaashankar is using the "product" attribute in his example. I tried to search for it but could not find any example of how these two attributes can be used. Could you please point us in any Adobe documentation for these? Thanks,

 

 

1 reply

alexbishop
Adobe Employee
Adobe Employee
December 14, 2023

In order to access it via a Profile Script, you would need to pass the info in as a parameter within the parameters or profileParameters object as per this doc

Rajneesh_Gautam_
Community Advisor
Rajneesh_Gautam_Community AdvisorAccepted solution
Community Advisor
December 14, 2023

Hi @alexbishop  - thanks! While we traditionally pass the data from page/screen using mbox-parameters (or "parameters" in Delivery API), the documentation mentions a couple of additional attributes "order" and "product" (these are listed at the bottom of the screenshot below).

 

Looks like @divyaashankar is using the "product" attribute in his example. I tried to search for it but could not find any example of how these two attributes can be used. Could you please point us in any Adobe documentation for these? Thanks,