Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Base64Encode conversion error in Salesforce spoke flow action

Rajesh Mushke
Mega Sage

Hi All,

 

I have tried all the possible ways as per different community threads but still I'm unable to convert the attachment to base64encode in Salesforce spoke flow action. getting the below error:

Error: Access to GlideSysAttachment.getContent from scope sn_sforce_v2_spoke not allowed
My script:


Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
2 REPLIES 2

Community Alums
Not applicable

@Rajesh Mushke You can create a Script Include in the global scope to handle the base64 encoding and then call this Script Include from your Salesforce spoke action.

Or you can explicitly allow cross-scope access by adding a Cross-Scope Access Rule.

 

Hi @Community Alums,

 

Thanks for the response! 

Cross scope access iss already present in my instance

RajashekharM_0-1731659872878.png

 

And, i have tried with Global script include already but still no luck



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke