Hi
Solved
Is it possible to duplicate existing rule automatically (without using AtaccamaOne UI)
Best answer by anna.spakova
Hi
I checked the browser and developer tools and apparently you can use the following graphQL to create a copy:
mutation ruleCopy($gid: GID!) {
ruleCopy(gid: $gid) {
result {
gid
__typename
}
__typename
}
}Variables:
{
"gid": "36ed325c-0000-7000-0000-0000003afc15"
}The result will give you the ID of the new rule most likely in a draft that you need to further edit (change name etc).
Alternatively, you can always create a new rule from scratch and just take the necessary information from another rule. But that requires a few more queries/steps (like creating implementation, input attributes, ...). But it allows using the ONE Metadata writer steps.
KIind regards,
Anna
Login to the Ataccama Community
No account yet? Create an account
For Ataccama Customers and Partners
or
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.





