Cannot access data from Flow Designer lookup records action

JG6
Kilo Guru

Good Morning Community,

 

For a scoped application, in Flow Designer, I have a lookup records activity to retrieve records from sc_cat_item_app_group (to get the groups that should approve a certain catalog item). The result from this action is injected as a parameter (eg. 'groups') into a custom action.

 

The flow test operation shows the expected record has been retrieved. And properly injected into the custom action. The script of the custom action gets the record object of type ScopedGlideRecord. However, whatever I try, I can't get any data out of it. Only nulls. Not even sys_id or sys_class_name. No exceptions either.

 

The cross-scope privileges have been set:

* sc_cat_item_app_group, table, read, allowed, target scope Global

* ScopedGlideRecord, execute api, scriptable, allowed, target scope Global

 

It certainly looks like a cross-scope privilege issue, but I'm pretty new to Flow Designer. So maybe it's a newbie mistake.

 

Is there somebody who knows what else I can try to extract the data from records ?

 

THX !

 

 

2 REPLIES 2

Satishkumar B
Giga Sage
Giga Sage

Hi @JG6 

https://www.servicenow.com/community/itsm-forum/lookup-record-in-flow-designer-if-no-record-found-ho...

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0814816

--------------------------------------------------------------------------------------------------------------------
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

I'm sorry, but I fail to see the point of those two links wrt to failing to get data out of ScopedGlideRecord objects, in a custom action script.

 

Don't tell me this was automatically generated...