Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I wrote a workflow that checks the contact for deletion and then send email and make empty some fields in the contact.
I also want to delete the opportunity for this contact, but the opportunities are in the sub grid, what is the best way to delete the opportunity, please help me.
or this way?
Workflow: Id -> contact search and opportunity for this contact delete (record delete), Business Rules ??? Sub grid ?? Pugin?? Query?
Thanks you for helping.
You can either achieve your requirement with Custom Workflow/ Plugin.
In C# code, based on Contact ID you will fetch all related opportunity and delete using Organizationservice code.
Maybe you can try to use flow to achieve it, which can easily delete related records.
Go Power Automate(https://us.flow.microsoft.com/en-us/ )
You can also use flow to set other action as your need.
(1) Send email.
(2) Update contact with blank fields.
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Business Applications communities