Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Payload Update issue in Journey Orchestration

Avatar

Level 2

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 2

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"
    },
    "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

Community Advisor

@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

Correct answer by
Level 2

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"
    },
    "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

Community Advisor

{
"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"
}
}
}
}