- Add Get Queue Items activity (name: “Get Queue Items”) and configure it.
- Create a variable of type QueueItem (name: “queueItems”).
- Set the Output > Result property of Get Queue Items activity to “queueItems”.
- Add an If activity and set the condition to “queueItems.Count > 0”.
- Inside the “Then” section of the If activity, include your logic for processing the queue items when the queue has data.
- Inside the “Else” section of the If activity, use the Add Queue Item activity to add new items to the queue.