Rajesh Chopade1
Mega Sage

Hi @newhand 

 

"getRecord", not supported in scoped app.

please query the sc_req_item table with sysId and get the catalog record.

 

Thank you

 

Not applicable

Hi @newhand ,

In scoped application $sp.getRecord will not work you can use below script

var gr = new GlideRecord('sc_req_item');
if(gr.get('ccbaa13c47ea8e10ea269dbe316d43f8')){
	gs.info("xxxxx");
}

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

dgarad
Tera Sage

newhand
Mega Sage

@Community Alums @Rajesh Chopade1 
Finally , I caught the error with try-catch。

Yes,as the error message says, getRecord is not supported in scoped application。 

But according to the official document below,it should be supported in the scoped application。。。

And I also found an OOTB widget in the scoped application using getRecord (I'm not sure if it works...)。

I 

newhand_0-1718068756872.png

newhand_1-1718069118932.png

 

 

Hi @newhand 

Great!

Then select the answer as correct and helpful and close this open thread.

 

Thank you