Get Queue Item Based on the specific content

Hi All,

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:

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:

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).

Please guide me how can i do this.?

How are you triggering this process?

Daily once the bot will be triggered

Check out postpone date on queue items, I think you want to use that instead of trying to create custom logic here based on the specific content.

@yashashwini2322 ,

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.

Thanks,
Ashok :slight_smile:

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.

@yashashwini2322 ,

I think you haven’t used the Deadline datetime correctly.

image

Here I have added 2 days but you can pass it as 1 so the same queue item will be checked only tomorrow.

Try it and let me know.

Thanks,
Ashok :slight_smile:

You should be using the Postpone feature of queue items, not trying to look inside the SpecificContent.

Hi @yashashwini2322 ,

You can make use of Postpone property while adding a queue item into the queue.

image

Thanks,
Aniket