When we deactivate a process and then import the package to another environment, we verify that the process that was deactivated is active in this new environment and we need to deactivate it again in this second environment. My question is whether there is any way to bind this "Active" value in the process.
Thank you in advance.
Best regards,
Andreia
Like
Hello Andreia,
The information on active\inactive processes status is stored in the SysProcessDisabled table. So you need to bind data from this table to transfer the process state between environments. Please also note that the process schema should be also bound to the package (SysSchema table) and if the schema is not bound to the package you will see the message like below:
Could this be dangerous if the Process has already been deployed to an env? I expect it wouldn't work at least, since the Process's Id in the target environment will be different, and so the SysProcessDisabled record wouldn't have the right Id?
Edit: I tried it, and it seemed to work fine. My setup was that the BP I was disabling existed in the package I bound the data to, which I presume is why there was no error when just binding the SysProcessDisabled record and not the SysSchema record as well. I bound the data with the following settings - unsure if it works other ways, but this seemed to make sense to me and seemed to work:
Unsure how it works though, as the Id of the SysSchema record for that BP is different (as I'd thought it would be) between environments. So not sure on the mechanism that makes this data binding work, but it's good to know!