Skip to main content
Post a question

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Avoid creation of entity if some condition is not met

Posted on 4 Aug 2020 14:13:42 by 814

Hi there,

When Incident type get created on work order, service tasks get populated by default. I want to check some condition and if that condition is not met i want to avoid creation of Service task. Is it possible? Please help.

Thank you

  • Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on 04 Aug 2020 at 23:29:34
    RE: Avoid creation of entity if some condition is not met

    Or rather than using Incident Types you could manually create the Service Tasks in code based on your conditions. It would be a little more complicated but it should acheive your requirement

  • Suggested answer
    RakeshJ Profile Picture
    RakeshJ on 04 Aug 2020 at 20:32:15
    RE: Avoid creation of entity if some condition is not met

    Hi Ravi,

    Unfortunately, it is not possible to stop it from being created as that is being pulled using OOTB logic. The efficient solution to this is what shared by Thomas above i.e. to have a workflow or flow to clear the value once its populated. This why you will not be breaking the OOTB configuration.

    Regards,

    Rakesh

  • Ravi Fulani Profile Picture
    Ravi Fulani 814 on 04 Aug 2020 at 19:22:33
    RE: Avoid creation of entity if some condition is not met

    Actually I want to stop it from being create. Is there any idea to do that?

  • Suggested answer
    Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on 04 Aug 2020 at 19:19:06
    RE: Avoid creation of entity if some condition is not met

    You can create a Workflow or Flow on create of Work Order Service Task then add your condition and either delete or deactivate the serivce 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans