approval based on MRVS - workflow

Anubhav Srivas1
Tera Expert

Hi,

i have a MRVS where the "App name" is coming from cmdb_ci table. upon selecting the app name, all the other fields such as : app service name, internet facing, hosting type , technology domain, tech domain owner is displayed ( auto populate). i need to push approvals based on "Tech domain Owner" which is "Alexander Duke" in the screen shot.

 

i have tried multiple ways to trigger approval for" Tech domain Owner" which is "Alexander Duke" in the screen shot.

but i'm unable to do it. Please help me. I'm using workflow to request approvals.

2 REPLIES 2

Sonam_Tiwari
Kilo Sage

Its better to keep the ' Tech domain Owner' as a reference field. Because what if there are two 2 people with the same name? Always better to point the record in user table.

 

For approvals, you can use approval user activity,

 

and add an advanced script - 

 

answer=[];

answer.push(current.variables.<back-end name of tech domain owner field>); ---> This is the sys_id that you are pushing.

If you are not changing the field to reference, then, you need to do a Gliderecord to user table with user's name first and get the sys_id which you can pass here. But again, that is not a very good idea.

 

Give it a try.

 

 

 

 

 

 

Consider indicating the response as helpful and marking it as correct if it meets your needs.

Hi Sonam,

i have already tried this and i'm getting this error. attaching screenshot for referrence.