The CreatorCon Call for Content is officially open! Get started here.

$sp.getRecord does not work in scoped application . servicenow bug ??

newhand
Mega Sage

Hi everyone.

 

I'm sucked in below problem.

If i put this code into a scoped portal widget's servier side script ,  the script will stop at line2 ($sp.gerRecord) without any errors or warnnings...

But if i put it into a global widget , everything goes well ...I don't know why...

gs.info('yyyyyyy ' + data.table + data.sys_id);

var rec = $sp.getRecord('sc_req_item', 'ccbaa13c47ea8e10ea269dbe316d43f8');

gs.info("xxxxx")

 

Please mark my answer as correct and helpful based on Impact.
5 REPLIES 5

Hi @newhand 

Great!

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

 

Thank you