Expand my Community achievements bar.

Adobe Journey Optimizer Community Lens 6th edition is out.
SOLVED

AJO to SFMC Custom Action integration

Avatar

Level 2

Hello,

  We got stuck with creating custom action to SFMC and would appreciate any suggestions from this group.

 

 1) We followed the steps to configure Custom Action from this article by @anuhya-tad .Expect that we are sending the audience to SFMC's Data extension.

 2) Custom  Action Configuration :

               (i) We were able to successfully test the authentication.

               (ii) Endpoint Configuration : Provided SFMC's Endpoint along with Data extension / Method : POST

               (ii) Payloads: ( Are these action parameters defined in the article?)   What format should this be ? We gave the below , is that correct?

3) Journey : Created JOurney with Read Audience and the SFMC Custom Action.. Are we missing anything there? Should we do source to target mapping  anywhere?

 

Please suggest? -- Thanks for all the help!

 

 

{
"items": [
{
"subscriberKey": "Peter@Ajoski.com"
"FirstName": "Peter",
"LastName": "Ajoski",
"EmailAddress": "Peter@Ajoski.com",
}
]
}

 

https://medium.com/@anuhyareddy.y/ajo-jo-sending-email-delivery-via-3rd-party-marketing-automation-t...

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@iamsuchith, I wanted to call out that when you're posting the data into the SFMC data extension it will be an individual payload for each profile from AJO. You can't stringify the bulk of the AJO profile payload and send it to SFMC. Otherwise, once you configure the custom action in administration steps given are correct. When you pull the custom action in a journey after the read audience map the attributes to the payload defined in the custom action. 

You can use this payload to drop it in the custom action when you setup,

{
"items": [
{
"subscriberKey": {
"toBeMapped": true,
"dataType": "string",
"label": "Subscriber Key"
},
"FistName": {
"toBeMapped": true,
"dataType": "string",
"label": "First Name"
},
"LastName": {
"toBeMapped": true,
"dataType": "string",
"label": "Last Name"
},
"Email Address": {
"toBeMapped": true,
"dataType": "string",
"label": "Email Address"
}
}
]
}
Thanks, Sathees

View solution in original post

4 Replies

Avatar

Employee

If the intent is to send an object for every profile, the payload would be as follows. It then allows you to map these parameters from the respective source attribute in the journey canvas.

 

{
"items": {
"subscriberKey": {
"toBeMapped": true,
"dataType": "string",
"label": "subscriberKey"
},
"FirstName": {
"toBeMapped": true,
"dataType": "string",
"label": "FirstName"
},
"LastName": {
"toBeMapped": true,
"dataType": "string",
"label": "LastName"
},
"EmailAddress": {
"toBeMapped": true,
"dataType": "string",
"label": "EmailAddress"
}
}
}

 

Do refer to the following documentation on the limitations and best practices 

 

https://experienceleague.adobe.com/docs/journey-optimizer/using/configuration/configure-journeys/act...

 

dugganab_0-1706724200124.png

 

Avatar

Correct answer by
Community Advisor

@iamsuchith, I wanted to call out that when you're posting the data into the SFMC data extension it will be an individual payload for each profile from AJO. You can't stringify the bulk of the AJO profile payload and send it to SFMC. Otherwise, once you configure the custom action in administration steps given are correct. When you pull the custom action in a journey after the read audience map the attributes to the payload defined in the custom action. 

You can use this payload to drop it in the custom action when you setup,

{
"items": [
{
"subscriberKey": {
"toBeMapped": true,
"dataType": "string",
"label": "Subscriber Key"
},
"FistName": {
"toBeMapped": true,
"dataType": "string",
"label": "First Name"
},
"LastName": {
"toBeMapped": true,
"dataType": "string",
"label": "Last Name"
},
"Email Address": {
"toBeMapped": true,
"dataType": "string",
"label": "Email Address"
}
}
]
}
Thanks, Sathees

Avatar

Level 2

@dugganab @SatheeskannaK  Thanks so much for both of your comments. Payload from both of you enabled the mapping parameters to shown in custom action but we have used Saathees's payload. 

 

We were able to map the fields and activated the journey but we are not seeing the records getting loaded into  SFMC's data extension. Is there a way we can debug within the journey and see where the problem is? 

 

fyi.. the authentication to SFMC is successful though. Appreciate if you have any suggestions.  

Avatar

Community Advisor

@iamsuchith, I would suggest posting the same/part payload to a public mock API (ex. https://www.mockaroo.com/) to test out whether it's posting data. If the data getting posted to the public mock API then it's a problem with the SFMC data extension setup. Another way is to test by sending the payload from Postman to the SFMC data extension to find out if that works.

Note: Remember to remove the testing data from the public mock API.

Thanks, Sathees