current.sys_id on a ACL create script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 01:15 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 01:57 PM
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.