- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2017 02:58 AM
I have setup a remote instance in update source (in order to get update set from dev instance) now I am trying to automate retrieve completed update set functionality which is basically an UI action. Is there any way to call this UI action i.e. Retrieve Completed Update Sets from that particular Remote Instance record.
Thank you.
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2017 11:31 PM
I have the following script prepared to retrieve completed update set from a particular Remote Instance. This serves my purpose.
var id, gr = new GlideRecord('sys_update_set_source');
- gr.addQuery('name','game');
- gr.query();
if(gr.next()){
id= gr.getUniqueValue();
}
var worker = new GlideUpdateSetWorker();
var sys_id = id;
- worker.setUpdateSourceSysId(sys_id);
- worker.setBackground(true);
- worker.start();
var progress_id = worker.getProgressID();
- gs.print(progress_id);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2017 03:20 AM
Yes - clicking a UI Action simply performs a HTTP GET action, so the URL text beneath that link ought to be a clue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2017 03:37 AM
Dave, Thank you for the reply.
The URL does not get changed when clicked on UI action from within a particular record of Remote Instance. How do I get that URL text?
Basically I am trying to execute UI action 'Retrieve Complete Update sets' in ecsd context from a fix script so it can take the values of URL, username and password by its own during execution.
Any help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2017 11:31 PM
I have the following script prepared to retrieve completed update set from a particular Remote Instance. This serves my purpose.
var id, gr = new GlideRecord('sys_update_set_source');
- gr.addQuery('name','game');
- gr.query();
if(gr.next()){
id= gr.getUniqueValue();
}
var worker = new GlideUpdateSetWorker();
var sys_id = id;
- worker.setUpdateSourceSysId(sys_id);
- worker.setBackground(true);
- worker.start();
var progress_id = worker.getProgressID();
- gs.print(progress_id);