Hi,
I have a worklfow that uses tranitions with the option to notify the owner selected. The first transition on the workflow also includes a script to change the owner and additional owner. Should the new owner and additional owner then recieve automatic workflow notifications when transitions occur (if the transition option to notify the owner has been selected)?
David
Solved! Go to Solution.
Solved by dkeeley. Go to Solution.
Hello David,
Owner in this context refers to those that are permitted to a transition through transition permissions and conditions, and not the record owner. So, you can use the automated notifications by using the condition to evaluate the record's owner and additional owners. Let me know if you'd like to talk through this, and I can arrange a quick conference call for us.
Hi Jared,
Thanks I think I understand now.
So the way round this is for me to make sure bothe the owner and additional owner have access to the workflow transition. What line do i need to add to the condition script to give access to the workflow transition for the additional owner?
David.
Its OK. I got it.
//default return value
var userCanApprove = false;
var add_owners = item.master.additionalOwners;
if (item.descriptor.ownerID === userID || add_owners[0].id === userID) {
userCanApprove = true;
}
returnValue(userCanApprove);
Looks good to me!