Ignore Current Transaction item and go to next

Hello, There is a condition. In a row there a colum (Status) If this comes “False” then ignore it and go to next.

So In Get transaction Data -

If want to check current item
transactionItem.specificContent(“Status”).toSting Equals “False”

This the the kind of statement I want to write, please suggest me to write proper condition and how it will ignore and move to next transaction in the Get transaction Data block only don’t go to Process.

Thanks

@pushhky

It would be straight to check the condition in process xaml or the same can be added before going to process xaml…in the invoke prt…where if condition would be transactionitem("Status").ToString.ToLower.Contains("false") then do not run invoke process xaml…

But if you still need in get transaction data then create a numberic variable in main xaml…along with transactionumber…and whenever you see a false …consition will be same as above instead of tansactionitem use dt.rows(transactionnumber+ newvariable)("Status").ToString.ToLower.Contains("false") and if the condition is true first increment the newvariable by 1 else only assign but do not increment. This way whenever a item
Is ignored automatically next is picked up and count as well starts from next because of new variable

Hope this helps…

Cheers

Yes You are right. Thank you so much
Cheers

1 Like

You can add a logic where datatable will be filtered for Status=True only (in Intialization workflow).
No need to stop or skip then the TransactionItem in run time.
Get transaction and Process will be run for all rows as there would be rows where Status = True.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.