web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Want to abort creation of record in service task of Incident

(0) ShareShare
ReportReport
Posted on by 836

Hi There,

I have many incident in my system and each incident has service task associated with them. There is one service task "A" associated with all incidents.  We want that  "A"  service task should appear only once in per work order.  So if we add 5 incidents to work order  then for first incident service task get created and then when i add other 4 the service task 'A" should not get added to work order.

I am trying Plugin approach, but i need help with it. My Plugin will run as on pre create operation, I will check the name of task and need to abort create operation. Please help

I have the same question (0)
  • Suggested answer
    Eccountable Profile Picture
    10 on at

    You could do this entirely with workflows, but you would need a free solution called Workflow Elements from Aiden Kaskela (see link below).

    1. Make a synchronous workflow that is triggered On Create of the service task

    2. Using Workflow Elements, add a step to query the other service tasks to see if any of them are "A". To accomplish this, you will need to create a FetchXML query  (kaskelasolutions.com/.../) and you can embed the parent record ID as a field inside the raw FetchXML so that you can get a list of all the child records to see if any have "A"

    3. if any results are returned, then Stop Workflow with Cancel status which will abort the save of the record and you can even add a message to that step of the workflow to inform the user of the issue.

  • Suggested answer
    moko33 Profile Picture
    1,788 on at

    Does it make sense to only have a Workflow running on create of Work Order Incident, there check if Is Primary eq true, and only than let the WF create the needed WO Service Task?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 25 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans