cancel
Showing results for 
Search instead for 
Did you mean: 

Initiate Two OData Calls and Merge Results in iFlow

kakshat
Advisor
Advisor
0 Kudos

Hello,

In my iFlow, I want to trigger two different OData calls and then merge the results of the two. I know about the Gather/Join patterns that can be used to merge two or more messages. However, I am facing trouble setting up the two branches for the OData calls, both of which I want to be always processed. I've tried using a Router but with that, only one of the branches (or routes) will be processed.

Any ideas how this can be achieved?

Thanks,
Akshat

Accepted Solutions (0)

Answers (2)

Answers (2)

Sriprasadsbhat
Active Contributor

Hello Akshat,

First option would be have a parallel multicast and then use join gather to merge both the data.

Second option is (not recommended for huge data) post first request reply store the data in a property( you can use content modifier) and process with the second call and then merge both the calls data using content modifier.

Third option to go with Content Enricher with combine option.

Regards,

Sriprasad Shivaram Bhat

kakshat
Advisor
Advisor
0 Kudos

Hi Sriprasad,

Thanks for your answer. I had already tried using Parallel Multicast but it wasn't allowing me to use it as the first step in my iFlow (right after the timer start event).

I've been playing around with the Content Modifier pattern. Hopefully, I'll be able to crack it. However, the fact is that there is huge data involved here and, like you said, this may not be the best way.

I am also trying an alternative way that may not need me to make the two calls in the first place. Let's see.

Thanks once again for your help.

Regards,
Akshat

Sriprasadsbhat
Active Contributor

Hello Akshat,

Have a content modifier just before parallel multicast or after timer element with some dummy data then it should work.

Regards,

Sriprasad Shivaram Bhat