CloneChildren triggering unessecery for the parent record
Describe the bug When we use the CloneChildren component, we had a workflow triggering on create of the cloned record table. We had an issue where the workflow triggered due to the creation of the new children records
I.e if you have a quote and quoteline relation and you want to make function that clones the children to another new quote and have a summerization of the quotelines from another workflow to the parent based on the children
Initially of the creation of the clone, the record will have the parents reference and not the new parent.
To Reproduce
- Create a workflow that uses clonechildren component
- Make another workflow that triggers on create of that table
- ensure that the second workflow updates something on the parent
- This triggers an update of the parent of the to-be cloned records due to the parent relationship record
Expected behavior Create the cloned children without the parent field by removing the field from the clonerecord function
Suggested Solution In the Common.cs extend the CloneRecord with a parameter for the newparentrecordfield and remove that from the attributes collection of the clonedrecord.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Browser - chrome, Edge
CRM Version - online/onpremise - WorkflowTools version
CRM Online tools version 1.0.60.0