Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Answered

How to delete Case automatically If the status reason merged using workflow

Posted on by Microsoft Employee

Hi Everyone,

I have a requirement  How to delete Case automatically If the status reason merged using workflow 

Thank you

Vetrivel G

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: How to delete Case automatically If the status reason merged using workflow

    Hi partner,

    Sorry for that, OOB workflow could not delete records.

    Here are 2 ways.

    1.Use workflow tools to delete record.

    github.com/.../Delete Record.md

    2.Use Power Automate instead.

    pastedimage1603436494467v1.png

    Best Regards,

    Leo

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to delete Case automatically If the status reason merged using workflow

    Hi Leo,

    I didn't find any options for deleting the case using flow. How to delete case after the condition.

    Thank you

    Vetrivel G

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: How to delete Case automatically If the status reason merged using workflow

    Hi Partner,

    When case A has been merged into case B, there is a field on case A named "merged" and it will update to "True", and there is also another field named "mastered" to store the main case id.

    In D365 workflow, we could not use "merged" field as filter condition so we should use "statusreason" and "masterid" instead, if you want to use "merged", you could use Power Automate.

    So we just need to add some filter condition in workflow to filter out the case which has been merged.

    1.Create a workflow based on case.

    pastedimage1603434264539v1.png

    2.Set the trigger condition to when "masterid" and "status" changed.

    pastedimage1603435184419v3.png

    pastedimage1603435475724v4.png

    3.Then add the delete step.

    Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,316 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans