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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

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

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

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

Thank you

Vetrivel G

I have the same question (0)
  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    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

  • Community Member Profile Picture
    on at

    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

  • Verified answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
KristineRisberg Profile Picture

KristineRisberg 37

#2
11manish Profile Picture

11manish 35

#3
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 21 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans