User gs.getProperty('instance_name') not allowed on different scope

Serigne Mansour
Tera Contributor

Hi All, 

 

I'm trying to use gs.getProperty('instance_name') on Google Drive scope but the flow execution throw an error : 

Error: properties from scope sn_gdrive_spoke not allowed
 
I've created a cross scope privilege as mentionned on the article : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0999860
but the issue always there.
 
Do have any idea to solve this ?
 
Regards, 
Serigne Mansour
3 REPLIES 3

Hemanth M1
Giga Sage
Giga Sage

Hi @Serigne Mansour ,

 

Can you try with flow variables 

1)Create a flow variable

2)Use gs.getProperty('instance_name')

3)use it in your flow.

 

HemanthM1_1-1727805459729.png

 

 

HemanthM1_0-1727805408381.png

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Serigne Mansour
Tera Contributor

I've created a "Cross scope privilege" for Read access on sys_properties table and now it work well.

 

Thanks you

Anwesha3
Mega Guru

Can you please share a screenshot of the error. Also, you can try fetching the instance name through an action. and pass it using flow variable. 

Kindly mark the reply as a correct answer / helpful if it helped to solve your question.

Thanks,
Anwesha