Why is GlideRecord updateWithReferences() not available in Scoped Applications API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2015 03:34 AM
Is there a reason for this method not to be available in the Scoped GlideRecord API?
I am porting to Fuji an application that uses this method to create or update a REST message object from a business rule and it is very convenient.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2015 10:40 AM
The updateWithReferences() GlideRecord method allows you to insert and update records into an arbitrary related table. However, this related table may not belong to the same application scope. The scoped API is intended to protect your data by ensuring that applications only have access to tables in the same application scope or to tables you explicitly allow other application scopes to access. Since there is no way of knowing in advance whether the related table belongs to the same application scope as the current table, this method is not part of the scoped API. Instead, create a new GlideRecord object for the related table and if the target table allows it, use the insert() and update() methods to manage these related records.