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

current.sys_id on a ACL create script

tahnalos
Kilo Sage

I have a primary form which links via sys_id to a secondary form's foreign key.   Users would only initiate create on the form by pressing the new button on a related list.

Someone had created a create ACL in the secondary form that uses current.sys_id.   The assumption they were making apparently (as indicated by their documentation) that current.sys_id denotes the current parent record.   Which I think is baloney.

Apparently we need the sys_id of the primary form that would check a third table to see if that sys_id is allowed to create secondary entries.   But how does one extract the sys_id of the primary entry when the secondary entry has not even been created yet?

Ideas?

Thanks

1 REPLY 1

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Tahnalos,



Do you have any field populated on the child form which refers to the primary table? If yes then we can fetch the value via dot-walking in the script.