Add records to update set, via script, within scoped app??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 01:13 PM
I am working with a scoped application. I have a record that has several related lists. I have a need to move the current record, and all related list records into an update set, for easy migration to other instances.
I am creating a UI Action on my primary table. I have the code for adding records into the update set using GlideUpdateManager2(); HOWEVER, this is not allowed to be used within a scoped application.
Does anyone have a solution, within a scoped application?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 02:22 PM
I don't think there's a scoped alternative to that API, and the only solutions I can think involve the global scope. You could create a global ui action, or you could create a globally scoped script include available to your application scope that calls the GlideUpdateManager2 API and acts as a passthrough.
Unfortunately, I don't think you're going to be able to do this all within a scoped application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2018 12:54 PM
I am thinking this is what I will have to do. I sucks that I will have to include a separate update set for this. I was hoping for some sort of in scope solution. I wish they would allow me to package global files in my application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 03:59 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 06:16 PM
I would go with a script include in the global scope that allows you to access the api.