cancel
Showing results for 
Search instead for 
Did you mean: 

Condition expression in looping process call

apu_das2
Active Contributor
0 Kudos

Hi,

I have a simple JSON data like below -

[{

"Name": "ABC"

},

{

"Name": "PQR"

}]

I will use iterative split in the mail flow and call a local IP where I will push the data to the target system REST API.

My question is what condition expression I can use in the looping process call?

Thanks in advance

View Entire Topic
apu_das2
Active Contributor
0 Kudos

Hi Sriprasad,

Thanks for your reply.

My input is an array of JSON data. My requirement is to split this and post in SFDC one at a time. Sample JSON is in my initial post.

So obviously there is no end condition here in the JSON data that I can use to incorporate looping process call.

If I will use a iterative splitter and then external call to post data to SFDC, will it post all data to Salse force or looping process call is the only option?

Thanks,

Apu

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Apu,

You can use General splitter but it works only for XML and Plain data only so you could try something like :

JSON data --> Convert JSON-XML--->General Splitter ( with xpath path to split individual records)--->Convert XML to JSON ( if SFDC accepts XML format then this is not needed)--->Request-Reply ( To post individual record to SFDC)--->Read your response.

Thanks,

Manoj