I need to upload a StoreID,card number and status into queue . If card number is empty then status will be "Card not present " if card number is present then status will be Card is present .
whenever the status is "Card not present "i need to add that item to queue with failed status.
Please help to resolve this
You can add queue item with ADD QUEUE ITEM activity with queue information and that will add as new queue item
Then use get transaction item and get the queue item which will change the status as in progress
Then use set transaction status activity to change the queue item status from in progress to failed
Initialize dtData as a DataTable with columns: StoreID, card number, status
Add data to dtData (StoreID, card number)
For Each row In dtData
If String.IsNullOrEmpty(row(“card number”).ToString) Then
row(“status”) = “Card not present”
Else
row(“status”) = “Card is present”
FilteredData = Filter DataTable (dtData) where status = “Card not present”
For Each filteredRow In FilteredData
Add Queue Item:
- Content: filteredRow(“StoreID”).ToString, filteredRow(“card number”).ToString, filteredRow(“status”).ToString
- Queue Name: YourQueueName
- Status: Failed