- Thu Jun 22, 2017 10:39 am
#793374
Hello, I've been reading through the wiki (I am a beginner) and have run into an issue that I can't seem to figure out.
I have a process that needs to route to a group based on the value of a field. I was able to locate the group ID for each of the groups, now I need to route the process.
For example, let's say that I have a select field called risk level with values low, med or high. If someone selects risk value low, route to group one, else if risk value is med, route to group two etc.
I have a variable to capture the value of risk level (i.e. @@risklevel == 'low'). I am trying to figure out how to route the process to the next step. I'm assuming I create a trigger, add the following example PHP code, select value based assignment and add both of the groups
if (@@risklevel == 'low') {
notify group one
}
else if (@@risklevel == 'med') {
notify group two
}
Sorry for the long message. If someone has an example I could see that would be much appreciated.
I have a process that needs to route to a group based on the value of a field. I was able to locate the group ID for each of the groups, now I need to route the process.
For example, let's say that I have a select field called risk level with values low, med or high. If someone selects risk value low, route to group one, else if risk value is med, route to group two etc.
I have a variable to capture the value of risk level (i.e. @@risklevel == 'low'). I am trying to figure out how to route the process to the next step. I'm assuming I create a trigger, add the following example PHP code, select value based assignment and add both of the groups
if (@@risklevel == 'low') {
notify group one
}
else if (@@risklevel == 'med') {
notify group two
}
Sorry for the long message. If someone has an example I could see that would be much appreciated.