Dear all,
My Salesforce connector gives me a payload of type ConsumerIterator, when i use message.payload.hasNext() the payload is converted into json, but I am unable to extract the any specific value from the json payload.
Sample json payload after message.payload.hasNext() is as below :
{
"Account": "zxc",
"AccountName": "asd123",
"Role": null,
"type": "ABC"
}
My next probelm is :
I want to combine 2 values of flow variables and map it into one single json predefined output Structure
but when i make use of tranform message and map the output strucutre on the right hand side with the Flowvaribales on the left side
the Second variables values gets flusshed off in the transform message
whereass in the logger I can see the values into 2 flowvariables
Can someone help me with this ?
thank you @sadik_ali for your help but that doesnt work as the payload that is received from salesforce is of type org.mule.consumerIterator