Forum Discussion
bojanvelevski
4 years agoValued Contributor
Hey @KTsnap ,
Here is the array before the expression:
and here is the array after the expression:
Re-check if you are doing something wrong. If you were referring to the complete payload, than make sure you check Pass Through in the Mapper.
KTsnap
4 years agoNew Contributor III
the expected Output is as follows:
[
{
"entity":
{
"attributes":
{
"type":"CustomField","url":"A"
}
"Metadata":
{
"valueSet":
{
"value":
[
{
"color":null,"default":false,"description":null,"isActive":null,"label":"None","urls":null,"valueName":"None"
},
{
"color":null,"default":false,"description":null,"isActive":null,"label":"Country","urls":null,"valueName":"Country"
},
{
"color":null,"default":false,"description":null,"isActive":null,"label":"Employee","urls":null,"valueName":"Employee"
},
{
"color":null,"default":false,"description":null,"isActive":null,"label":"Both","urls":null,"valueName":"Both"
},
{
"color":null,"default":false,"description":null,"isActive":null,"label":"Active","urls":null,"valueName":"Active"
}
]
},
},
},
}
]
- bojanvelevski4 years agoValued Contributor
As I said in my previous reply, enable Pass through in the Mapper. You’ll get the following result:
{ "entity": { "attributes": { "type": "CustomField", "url": "A" }, "Metadata": { "valueSet": { "value": [ { "color": null, "default": false, "description": null, "isActive": null, "label": "None", "urls": null, "valueName": "None" }, { "color": null, "default": false, "description": null, "isActive": null, "label": "Country", "urls": null, "valueName": "Country" }, { "color": null, "default": false, "description": null, "isActive": null, "label": "Employee", "urls": null, "valueName": "Employee" }, { "color": null, "default": false, "description": null, "isActive": null, "label": "Both", "urls": null, "valueName": "Both" }, { "color": null, "default": false, "description": null, "isActive": null, "label": "Active", "urls": null, "valueName": "Active" } ] } } } } ]
- KTsnap4 years agoNew Contributor III
Thanks Boston , its working Now.