Breaking news from around the world
Get the Bing + MSN extension
Check out the latest Customer Service updates!Learn about the key capabilities and features of Dynamics 365 Customer Service and experience some of the new features.
Download overview guide | Watch Customer Service video
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
Does anyone know what is required to to trigger a workflow when a product has been deleted from the Order Product section on an Order form?
When I add a product on the Order form, I have a field that Increments/adds each product's before tax value.
When I setup a workflow to do the opposite and decrement/remove the before tax value from the same field, the value in that field doesn't change.
I don't have the right trigger set to decrement the value.
Can someone advise what needs to be set to trigger a workflow when deleting a product from the Order Product section on an Order form please?
In D365, Product has a 1:N relationship with Order Line, and Order Line has a 1:N relationship with Order at the same time, so Product has a N:N relationship with Order, which means when you delete product record on the Order form, this record will not really be deleted in D365, it just removed from the form but it still exists in product list.
That's may be the reason why your workflow didn't run.
BTW, I saw your screenshot and why did you choose the trigger condition as "after record is created"?
I suggest that you could use js code to call the workflow when you delete product from subgrid in order form.
Hope it helps.
Thank you Leo for your response.
It's a pain that D365 for every action doesn't have a process to replicate or reverse it via workflows etc. The workflow allows me to add the value to the field but no option to remove it after product deletion from the subgrid...frustrating.
I'm not a programmer so will seek advice from my colleagues but your explanation I believe has put me on a more understandable path.
As for the 'after record is created' trigger, I was trying all sorts of combinations to try and get a result.
Thanks again Leo.
Line Item Number - Does Not Contain Data
I tried changing the If condition on the workflow to Order Product: Line Item Number does not contain data
When I add a product to the subgrid, then delete it, the value field removes the amount when 'Decrement by' is selected.
Also changed 'Record is created' to 'Record is deleted'.
In order to achieve this, you need to first keep the workflow on Delete of Order Product as shown below:
Then you need to Check if Order product contains data in VAT.
Then in update Order step, set decrement VAT of Order product from VAT Price of Order as shown below.
Hope this helps.
I'm so glad to hear that you have resolved your problem and thanks so much for sharing your solutions.
If my answer helped you, please mark my answer as verified so that we could help other users with similar issues.
Have a nice day.
Business Applications communities