STOP repeating data in queue

My Bot triggers in gap of 2 hours. It should send the item to queue from API, now if previous queue data is there , bot should skip those repeated entries and updated only new or remaining entries from API

you can set up unique reference to avoid duplication

@jast1631,

You got two options here:

  1. Set Unique reference to QueueItems.
  2. Add logic to get existing queue items with reference id. If it returns a queue item, don’t add else add it to queue.

Thanks,
Ashok :slight_smile:

How to it. Can you explain

Can you explain first point. As Second will increase processing time.

@jast1631 ,

While creating queue enable Enforce unique references option

Thanks,
Ashok :slight_smile:

Do we need to make any changes in code for this as well ?

@jast1631,

Not at all. It’s queue level one time change.

Thanks,
Ashok :slight_smile:

Then , While updating that data table do I need to add any settings to any column

@jast1631,

Your datatable should have a reference column.

Thanks,
Ashok :slight_smile:

how to declare this ?

@jast1631,

Add a column called “Reference” to Datatable.

Thanks,
Ashok :slight_smile:

I am creating data table from APi response , do we need to add new column it self or some settings we need to do in while adding DT to queue

@jast1631,

Just add a Reference column to datatable. This works with Add Bulk Queue Items so it should work with API as well.

Thanks,
Ashok :slight_smile:

1 Like

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