AnsweredAssumed Answered

Json Set Element not pulling data from fields

Question asked by jlcalhoun61 on Aug 16, 2018
Latest reply on Aug 16, 2018 by jlcalhoun61

I have this variable in my script and the response that is being sent is not correct.  It is sending the values without the values in the table only sending the value name.

Current variable

"[" & JSONSetElement ( "" ; ["dcn" ; " & DMR_integration::dcn & " ; JSONString ] ; ["status" ; " & DMR_integration::status & " ; JSONString ] ; ["deliveryTime" ; " & DMR_integration::deliveryTime & " ; JSONNumber ]   ) & "]"

 

this is what should be going

//[{"dcn":"181690301P001000471","status":"In transit", "deliveryTime":1336226501635}]

 

this is my current response

[{"dcn":" & DMR_integration::dcn & ","deliveryTime":0,"status":" & DMR_integration::status & "}]

Outcomes