You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Agent workflow not retaining results in loop constructs

Summary:

We have an agent to get contract line details in a for each loop

We created global variable and use push method to update this variable inside for loop with line details

When we get the variable value outside the for loop , we don't get data for all lines.

We are using 26A Fusion Applications

Any help provided is appreciated.

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

26A


Code Snippet (add any code snippets that support your topic, if applicable):

let consolidated = $context.$variables.collectedData || [];

let itemResult =$context.$nodes.FOREACHCONTRACT.FOREACHCONTRACTLINE.LLMGETTHELINELEVELSUM.$output.items[0];consolidated .push(itemResult);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!