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

Clone children ignores statuscode and statecode #290

Open
DFugel opened this issue Dec 6, 2024 · 4 comments
Open

Clone children ignores statuscode and statecode #290

DFugel opened this issue Dec 6, 2024 · 4 comments

Comments

@DFugel
Copy link

DFugel commented Dec 6, 2024

Describe the bug
I am currently using version 1.0.53.0 in an OnPremise CRM.
When calling Clone Children all the records are cloned. But in den Clones all records are active.

Expected behavior and actual behavior.

Copy all child records including the current state.
Alternate: Clone only active records.

CRM Version - online/onpremise - WorkflowTools version

I am currently using version 1.0.53.0 in an OnPremise CRM.

@piotr-albertin
Copy link

@DFugel, out of curiosity, why do you expect the current functionality as a bug?
https://github.com/demianrasko/Dynamics-365-Workflow-Tools/blob/master/docs/Clone%20Record.md quite clearly explains the behavior

@DFugel
Copy link
Author

DFugel commented Dec 9, 2024

I cannot find anything related to this behaviour in the documentation.
What I read is: "You pass the URL of one record, and it will create a new record, with the same values."
@piotr-albertin which part of the doc do you reffer to?

@piotr-albertin
Copy link

Exactly that part. "This step is very usefull to Clone some record. You pass the URL of one record, and it will create a new record, with the same values."

Could you explain why you expect the current functionality as a bug and provide examples on your expected behaviour?

@DFugel
Copy link
Author

DFugel commented Dec 11, 2024

In this case I understand the sentence in a totaly different way. But I am not a native speaker.
For my understanding "with the same values" means if the state of the original record is inactive, then the value of the state field of the clone is also inactive. If same value means inactive gets active then it's my fault.

Example:
I cloned a record have an x_accountid, x_description, statecode and statuscode.
x_accountid changed since it is the parent-field. Expected behaviour.
x_description was cloned as it is. Expected behaviour.
statecode 1 changed to statecode 0 in the clone. Not expected.
statuscode 2 changed to statuscode 1 in the clone. Also not expected.
In my expectation statecode would have been 1 and statuscode 2 in the clone as well.

We are talking about this method:
https://github.com/demianrasko/Dynamics-365-Workflow-Tools/blob/master/docs/Clone%20Children.md

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

2 participants