Unable to Pass System Property Value to "Ask for Approval" Action in Flow Designer

Hari S1
Tera Contributor

Hi,

I have created a system property with the name certificate.manag.group, and the value of this property contains a group name, App Engine Admins.

I have also created a flow, and in that flow, I added an action called Ask for Approval. What I am trying to achieve is to dynamically pass the group name (from the system property) into the Ask for Approval action. However, I am unable to attach the group name from the system property to the Approval Group field in the "Ask for Approval" action.

Could you please assist me the group name stored in the system property is correctly used in the flow?

 

HariS1_0-1741740921680.png

 

HariS1_1-1741740967438.png

 

 

Thanks

22 REPLIES 22

@Hari S1 

please use script in the Ask for Approval

var approvers = fd_data._2__look_up_record.record.sys_id;
return "ApprovesRejectsAnyU["+approvers+"]"

AnkurBawiskar_0-1741761807310.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

1. Create sys property.

JSiva_0-1741761844510.png

2. Flow:

JSiva_1-1741762185117.png

3. Look up sys property

JSiva_2-1741762217709.png

 

4. Look up group

JSiva_3-1741762247025.png

 

5. Ask for approval

JSiva_4-1741762270308.png

 

 

 

@Hari S1 

Another simple way if you don't want to change anything.

Set group sysId instead of group name in that system property

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

Yes, I tried changing the system property value to the group's sys_id, but the approval is still not attaching to the group name.

 

HariS1_0-1741761771372.png

 

@Hari S1 

I shared the working logic in my earlier post

sharing again

please use script in the Ask for Approval

var approvers = fd_data._2__look_up_record.record.sys_id;
return "ApprovesRejectsAnyU["+approvers+"]"

AnkurBawiskar_1-1741762086299.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader