I have a Queue Items with the specific data as below:
MailSubject Date
Run Date
Current Date
so,depends upon the run date data ,i want to process the Queue item.if Run date is equal to today’s date (Process running date) then process the Queue item,or else process it on the date mentioned in Run date.
Think that I’m running the process on = 2024-03-01(yyyy-MM-dd)
Example 1:
in above screenshot,the run date is 2024-03-01,
so it is equal to process running date,so the item has to process.
Example 2:
In this Example 2 Screen shot the run date is 2024-03-04,so it is not equal to Process running date,so item should not process and it should process on 2024-03-04(when this date comes).
Once you get the transaction with Get Transaction Item check your date logic.
If date logic not satisfied use Postpone Transaction Item activity to postpone the transaction till the date and time you want.
Once the transaction postponed, state of the queue item will reset to New from In Progress and the same transaction will not be picked up by Get Transaction Item till the postponed time.
This is the simplest approach you can use in this situation.
Hi I tried this approach ,but Once the transaction postponed, state of the queue item will reset to New from In Progress and the same transaction is picked up by Get Transaction Item and it is running infinitely because we’ll be have a new queue item in the list.