Hi Keerthika, Yes agree with Chanakaf. Similar is done with Salesforce query and querymore. You can follow similar approach.
[1] https://docs.wso2.com/display/ESBCONNECTORS/Salesforce+Connector#SalesforceConnector-Queryingrecords [2] https://github.com/wso2-dev/esb-connectors/blob/master/salesforce/1.0.0/src/main/resources/salesforce/queryMore.xml On Tue, Mar 31, 2015 at 7:58 PM, Chanaka Fernando <chana...@wso2.com> wrote: > Hi Keerthika, > > This is a custom requirement which is more like a while loop. You need to > write a class mediator to implement this logic since ESB does not have a > construct similar to while loop. > > Thanks, > Chanaka > > On Tue, Mar 31, 2015 at 6:56 PM, Keerthika Mahendralingam < > keerth...@wso2.com> wrote: > >> Hi All, >> >> When we invoke a method in Marketo API we are getting the following >> response: >> >> { >> "requestId":"a9ae#148add1e53d", >> "success":true, >> >> "nextPageToken":"GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===", >> "moreResult":true, >> "result":[ >> { >> "id":2, >> "leadId":6, >> "activityDate":"2013-09-26T06:56:35+0000", >> "activityTypeId":12 >> }, >> { >> "id":3, >> "leadId":9, >> "activityDate":"2013-12-28T00:39:45+0000", >> "activityTypeId":1 >> } >> ] >> } >> >> If the moreResult attribute is true in the response, we need to call >> this method until the moreResult attribute returns false. The nextPageToken >> returned from the previous call need to be reused for the next iteration of >> this call. How can we do this? >> >> -- >> <dev-requ...@wso2.org> >> Keerthika Mahendralingam >> Associate Software Engineer >> Mobile :+94 (0) 776 121144 >> keerth...@wso2.com >> WSO2, Inc. >> lean . enterprise . middleware >> > > > > -- > -- > Chanaka Fernando > Technical Lead > WSO2, Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 773337238 > Blog : http://soatutorials.blogspot.com > LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 > Twitter:https://twitter.com/chanakaudaya > Wordpress:http://chanakaudaya.wordpress.com > > > > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev