Set queue item priority

I want to set queue item priority to high after it failed and before it marks as RETRIED.
My queue is at specific folder not in default folder.

How can i do it? I tried to do it with assign activity to transaction.priority but it didnt work.

Can anyone have an idea?

Hi @Lior

You cannot change the priority once added. Instead what you can do is…when you want to retry remove queue retries and manually in the system exception catch block add a new item with same details but with setting the priority to high

cheers

Thanks
How can i get easly all the queue item data to add them into the new item?

Hi @Lior

you have to do it in the same way as you did for add queue item …but the only difference is instead of adding the variable you will add Name = transactionitem.Specificcontent(“Name”).Tostring in the arguments of add queue item for each specific content
Example

cheers

OK
I will try it

1 Like

Also have a look on rest API endpoint /odata/QueueItems(YourItemID)

Kindly note: when only setting the Priority it will clear other field (e.g. SpecificContent). So everything what is to keep is also to include within the body payload