Check if this transaction has been processed before or not

Hello
I’m using the get queue item activity and I create a variable in the output of this activity of type IEnumerable my target is to check if the transaction has been processed before or not so I set a condition with the output variable if it’s greater than or equal to 1 then it’s processed but the condition wrong bc it’s different types.

Any suggestions?

@kalmajhad

Get Queue Item:
Output:
queueItems (IEnumerable)

If:
Condition: queueItems.Count() > 0
Then:
// Transaction has been processed before
Else:
// New transaction

@kalmajhad

Are you using any reference to get only required items? If yes then outputvar.count>0 should suffice…if no filters then any queue item will be retrieved…so we need to use linq or loop to check each item retrieved …if it matches the requirement

Cheers

Yes I have a reference

1 Like

Thank you all. It Works

1 Like

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