Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloneChildren triggering unessecery for the parent record #282

Open
JDMKeb opened this issue Feb 16, 2024 · 0 comments
Open

CloneChildren triggering unessecery for the parent record #282

JDMKeb opened this issue Feb 16, 2024 · 0 comments

Comments

@JDMKeb
Copy link

JDMKeb commented Feb 16, 2024

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

  1. Create a workflow that uses clonechildren component
  2. Make another workflow that triggers on create of that table
  3. ensure that the second workflow updates something on the parent
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant