Insert record in "sysapproval_approver" table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2016 09:29 PM
Hi,
I have a requirement to add a record in "sysapproval_approver" table, to show in "My approval" page.
Can I have a guidance from anybody?
thanks
Guru

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2016 09:59 PM
I haven't worked with contract table but does it have an existing workflow ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2016 10:04 PM
Yes, there is "Contract Approval" workflow. I guess, it execute the "Approval / Reject" process of existing record in the "sysapproval" table. Please correct me if I am wrong.
thanks
Guru

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 09:18 PM
I was wondering how to do this via script. Figured out what the mandatory fields are.
var approval_gr = new GlideRecord('sysapproval_approver');
approval_gr.initialize();
approval_gr.state = 'not requested';
approval_gr.approver = '46ca0887a9fe19810191e08e51927ebf';
approval_gr.sysapproval = '776022addb7aa600cb5772fc0f961900';
approval_gr.source_table = 'change_request';
approval_gr.document_id = '776022addb7aa600cb5772fc0f961900';
approval_gr.insert();