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

For each loop condition for Invoice to Invoice Line is not working

Summary:

I have added one for each condition in invoice created Agent so that it will perform some operation in each line of the invoice.

Added for each saved condition query:

SELECT INVOICE_GID FROM INVOICE_LINEITEM WHERE INVOICE_GID=$GID

FOR EACH event:

CALL_INVOICE_LINE_OB_GOLD

Let suppose, when one invoice is created with 3 invoice lines then this for each action performs then it goes to the related agent from the custom event, but the related agent is running only once not 3 times even though the saved condition returns 3 rows with the invoice_gid.

Can someone please help me on this why the related agent is not running 3 times because the invoice is having 3 lines also the saved condition returns 3 rows?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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