Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Payload Update issue in Journey Orchestration

Avatar

Level 1

I have created an action in JO, however while making updates to the Payload Attribute I need to upload a new JSON file. But while uploading JSON file it was throwing error "Paste a payload with a Valid JSON format" 
Even the JSON format which is correct. Kindly help me in same. 

1 Accepted Solution

Avatar

Correct answer by
Level 4

{
"templateName":{
"toBeMapped":true,
"dataType":"string",
"label":"Template Name"
},
"transEmailID":{
"toBeMapped":true,
"dataType":"string",
"label":"Tranction Recipient Address"
},
"sailthruKey":"338ff3ab1c7f19969a8bb2263c1f0a09",
"skey":"524a3698546cd72346c45bb15afa617f",
"scid":{
"toBeMapped":true,
"dataType":"string",
"label":"Signet Customer ID"
},
"SignetCustomer_SID":{
"toBeMapped":true,
"dataType":"string",
"label":"SignetCustomer_SID"
},
"transID":{
"toBeMapped":true,
"dataType":"string",
"label":"Transaction ID"
},
"recommendations":{
"toBeMapped":true,
"dataType":"listObject",
"label":"recommendations",
"fields":{
"sku":{
"dataType":"string",
"label":"sku"
},
"pdpURL":{
"dataType":"string",
"label":"pdpURL"
},
"imageURL":{
"dataType":"string",
"label":"imageURL"
}
}
}
}

View solution in original post

4 Replies

Avatar

Level 4

@Neha-inf 

Looks like the new json payload is not a valid json. Please validate here https://jsonformatter.curiousconcept.com/#  and then add payload under “Action parameters”

Avatar

Level 1

Thanks for your response, while cross checking JSON file it shows Expecting 'comma' or '}', but I am not a JSON expert can you please help me in fixing it. I am pasting the JSON file content below. 

{
    "templateName": {
        "toBeMapped": true,
        "dataType": "string",
        "label": "Template Name",
    },
    "transEmailID": {
        "toBeMapped": true,
        "dataType": "string",
        "label": "Tranction Recipient Address"
    },
    "sailthruKey": "338ff3ab1c7f19969a8bb2263c1f0a09",
    "skey": "524a3698546cd72346c45bb15afa617f",
    "scid": {
        "toBeMapped": true,
        "dataType": "string",
        "label": "Signet Customer ID"
    },
    "SignetCustomer_SID": {
        "toBeMapped": true,
        "dataType": "string",
        "label": "SignetCustomer_SID"
    },
    "transID": {
        "toBeMapped": true,
        "dataType": "string",
        "label": "Transaction ID"
    }
    "recommendations": {
        "toBeMapped": true,
        "dataType": "listObject",
        "label": "recommendations",
        "fields": {
            "sku": {
                "dataType": "string",
                "label": "sku"
            },
            "pdpURL": {
                "dataType": "string",
                "label": "pdpURL"
            },
            "imageURL": {
                "dataType": "string",
                "label": "imageURL"
            }
        }
    }
}

 

Avatar

Correct answer by
Level 4

{
"templateName":{
"toBeMapped":true,
"dataType":"string",
"label":"Template Name"
},
"transEmailID":{
"toBeMapped":true,
"dataType":"string",
"label":"Tranction Recipient Address"
},
"sailthruKey":"338ff3ab1c7f19969a8bb2263c1f0a09",
"skey":"524a3698546cd72346c45bb15afa617f",
"scid":{
"toBeMapped":true,
"dataType":"string",
"label":"Signet Customer ID"
},
"SignetCustomer_SID":{
"toBeMapped":true,
"dataType":"string",
"label":"SignetCustomer_SID"
},
"transID":{
"toBeMapped":true,
"dataType":"string",
"label":"Transaction ID"
},
"recommendations":{
"toBeMapped":true,
"dataType":"listObject",
"label":"recommendations",
"fields":{
"sku":{
"dataType":"string",
"label":"sku"
},
"pdpURL":{
"dataType":"string",
"label":"pdpURL"
},
"imageURL":{
"dataType":"string",
"label":"imageURL"
}
}
}
}