Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I would like to send a json expression (in tMap) to a tRest for a PUT message but I have an error:
My expression JSON:
"{\"EntityList\": \"[\""+"
"{\"EntityName\": \"lead\","+"\"Id": \""+Var.var1+"\","+"\"Attributes\":\"[\""+"
"{\"Name\" : \"crmvi_opt\","+"\"Type\" : \"integer\","+"\"Value\" : \"0\""+"}""+"
\"]\""+"}""\"]\""+"}"
You are putting quotes around the wrong sections. For example, arrays ([...]) do not need quotes around them. I believe your code should look more like this....
"{\"EntityList\": [{\"EntityName\": \"lead\","+"\"Id\": \""+Var.var1+"\","+"\"Attributes\":[{\"Name\" : \"crmvi_opt\",\"Type\" : \"integer\",\"Value\" : \"0\"}]}]}"
You are putting quotes around the wrong sections. For example, arrays ([...]) do not need quotes around them. I believe your code should look more like this....
"{\"EntityList\": [{\"EntityName\": \"lead\","+"\"Id\": \""+Var.var1+"\","+"\"Attributes\":[{\"Name\" : \"crmvi_opt\",\"Type\" : \"integer\",\"Value\" : \"0\"}]}]}"