Skip to main content
arpan-garg
Community Advisor
Community Advisor
Sep 20, 2023 3:36 PM UTC
Solved

Unable to pass dynamic variable to the post call in AJO datasources

Hi,

 

I want to call an external datasource from AJO and pass the list of all products so that i can get the availability of the products from the external system.

 

I read the document for making a post call to the external sources and doing the same thing as mentioned in the document

 

https://experienceleague.adobe.com/docs/journey-optimizer/using/configuration/configure-journeys/data-source-journeys/external-data-sources.html?lang=en

 

However i am not able to pass  dynamic variables to the post API.

 

Did anyone tried passing list of dynamic variables to an API on AJO

 

@akshaaga @anuhya-y @satheeskannak @_manoj_kumar_ 

 

Thanks in advance,

 

 

Arpan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SatheeskannaK
SatheeskannaKAccepted solution
Adobe Champion, Community Advisor, UG Leader
Oct 4, 2023 11:00 PM UTC

@arpan-garg, Can you take a look at this documentation to see if that helps,

https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/journey-use-cases/technical-use-cases/collections.html?lang=en#limitations

Also, if you want to check the availability of the product with the help of an external system you can try a recent feature added to custom actions to get API response.

https://experienceleague.adobe.com/docs/journey-optimizer/using/configuration/configure-journeys/action-journeys/action-response.html?lang=en

Thanks, Sathees

8 replies

Manoj_Kumar
Community Advisor
Community Advisor
Sep 20, 2023 11:52 PM UTC

Hello @arpan-garg 

 

Could you please share more details on what you have tried and what is not working? Some screenshots would helpful to understand what you are doing and where the problem could be.

Translate
Manoj  | https://themartech.pro
Community Advisor
Sep 21, 2023 6:12 AM UTC

@arpan-garg 

Dynamic parameter values depend on the execution context, they will be defined in the journey. Use advanced editor to feed dynamic values.

Check https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/building-advanced-conditions-journeys/expressionadvanced.html?lang=en

Translate
akshaaga
Adobe Employee
Adobe Employee
Sep 21, 2023 11:57 AM UTC
arpan-garg
Community Advisor
Community Advisor
Oct 4, 2023 4:57 PM UTC

Hi @akshaaga @anuhya-y @_manoj_kumar_ - Just to add more details for clarity. I have a usecase where i want to send all the products that customer added to the cart to a datasource so that i can check the stock availability of the products.

 

I see in advanced editor , i am unable to loop through all the items in productList. Is there a way to iterate and send all the items to the datasource in one way.

 

I see array function as last, at, all but couldn't find a way to send entire productListItems to datasource as a payload.

 

 

Translate
arpan-garg
Community Advisor
Community Advisor
Oct 4, 2023 5:03 PM UTC

@anuhya-y @akshaaga @_manoj_kumar_ - This is what i am trying to send to an external API

 

 

But this is the error i get while saving the journey 

 

Datasource only accept string while configuring and doesn't allow listString. Is there a way to send listString

 

Translate
SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
SatheeskannaKAdobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
Oct 4, 2023 11:00 PM UTC

@arpan-garg, Can you take a look at this documentation to see if that helps,

https://experienceleague.adobe.com/docs/journey-optimizer/using/orchestrate-journeys/journey-use-cases/technical-use-cases/collections.html?lang=en#limitations

Also, if you want to check the availability of the product with the help of an external system you can try a recent feature added to custom actions to get API response.

https://experienceleague.adobe.com/docs/journey-optimizer/using/configuration/configure-journeys/action-journeys/action-response.html?lang=en

Translate
Thanks, Sathees
arpan-garg
Community Advisor
Community Advisor
Oct 5, 2023 5:06 AM UTC

Hi @satheeskannak  - I already checked the support of listStrings in custom action earlier but the point is the response payload part is still in beta and is not publicly available.

 

This eliminates it as an option for us.

 

Thanks,

Arpan

 

Translate