Parsing XML Elements - Infinite loop

shivaadapa
Tera Expert

Hi
"Suppose a large XML payload is received as a response from a third-party API request, and your scoped app requires parsing that payload. In that case, there might be instances where looping through multiple nodes might take a significant amount of time, resulting in an infinite loop affecting the instance resources. To avoid such scenarios, always keep a maximum counter/limit in your logic while parsing XML elements to break the loop once that upper limit is reached."

"We recommend Data Stream action for handling response data larger than 10 MB. Data stream action work in conjugation with Flow Designer to send REST or SOAP requests and allow flows to process large requests by processing each object in the data stream using For Each flow logic. More info on Data Stream action can be found here"
from which table i can limit the data response?

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@shivaadapa 

So what's the question?

OR

you want to share some information to community members? if yes then please share the complete steps so that it benefits all

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

hi @Ankur Bawiskar 

I want to limit the responses from third party where can I set the limit for the third party responses?