Not applicable

What is happening is when we create a Service Catalog request from the workspace, it generates multiple tasks. I initially thought it was the UI action, but when I removed this workflow with a flow designer flow, we didn't have an issue. The problem is that this workflow is used for multiple catalog items like over 70 plus items. We need to fix it. 

 

 

I did. I refreshed and created a new interaction, but same issue. 

Do you know how many records the GlideRecord on your fulfillment table is retrieving in your test case?

Not applicable

Actually, it is at the Fulfillment table is retrieving more than one record. Maybe I should use an encoded query instead? 

 

 

That could work, though it would be harder to incorporate the conditional addQuery if the sequence is not blank.  Manually filter a list view on your table by the criteria, selecting the  cat_item and sequence number used in your test case to see how many rows are returned, then tweak it to return the expected rows.  If the query should return multiple records but you only want to create one Catalog Task record, you can change the while to if. 

Not applicable

You have been so helpful. Thank you so much. I realized that I could just use setLimit() on the query. I will have to test it several times b/c the event occurs ever now and then. But I will definitely take your suggestion.