This content has been marked as final. Show 9 replies
After retrieving the Event from the Queue, using GetEvents method, we wish to delete it.
The DeleteEvent method does not support deleting the specific event and delete all events in that batch.
The arguments that the DeletEvents method accept is the DateTime and LastEventId and if not provided any arguments then it will delete all the messages in the queue. But our requirement is to delete only the events that we have read or which events that are corresponding to our events.
Do we need to use a separate named queue for the events?
Guys I'm eagerly looking for response, its an urgent situation for me.
Here is the issue in more simplified way:
I'm calling the default queue in CRM On Demand and successfully able to retrieve the events from the queue into my SOA process. The SOA process will receive all the events from the queue and I'm filtering them and processing only the events that are required to me. Now I want to delete the events from default queue which I have processed. The problem is that the DeleteEvent method is accepting only two arguments LastEventId and DataTime. In both the cases the other events will also be deleted and I need to restrict this. But wondering how to do this.
Please help me.
As you are saying to use workflow for this, but as we know workflows are used for trigger events only and perform operations on records but not use for apply operations on events. So i think workflow will not do any thing.
And as many processes are doing transaction, if you are making one program then this program will run by reading one by one event in queue , your program will not show further next event until you refresh/delete the queue.
and this will be possible if EventCount=1
meaning is that until you delte the current event you can not see next event in this program ,so no chances of miss.
so there is no chance of miss any transaction