You need to sign in to do that
Don't have an account?

Process Builder / Work Flow / Apex Code - Best Solution?
We need to create a process that loops through an order once it has been submitted and determine if it has duplicate items. If it does, we would delete the duplicate from the order automatically. We are still learning from the tools available. When reading through the order items, we will match on the SKU / Category - if there is more than 1 occurrence within that order, we wish to delete the last occurence.
Haven't figured out how to do this yet in Work Flow / Process Builder. Wondered if someone with more experience on the various options can give the best practice solution?
Thanks
Dan
Haven't figured out how to do this yet in Work Flow / Process Builder. Wondered if someone with more experience on the various options can give the best practice solution?
Thanks
Dan
Have you tried Duplicate Rule?
check this - http://www.infallibletechie.com/2016/05/how-to-avoid-duplicate-in-custom-object.html
Instead of deleting it, you can avoid creation of duplicate.
All Answers
Have you tried Duplicate Rule?
check this - http://www.infallibletechie.com/2016/05/how-to-avoid-duplicate-in-custom-object.html
Instead of deleting it, you can avoid creation of duplicate.
Dan
Dan
Check this to handle in VF - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Datacloud_DuplicateResult.htm