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);
Tagged:
0