Update approval source from service portal approval widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 09:02 AM
When a user that has an approval record pending their action goes to service portal and clicks 'approve' from the OOB widget, I would like to set the approval source on the approval record to 'ui.serviceportal' or something of the like. I've been logging items to console, but not too sure how to go about this.
The button calls this:
ng-click="approve(approval.sys_id);
Which is the below code:
$scope.approve = function(id) {
$scope.data.op = "approved";
$scope.data.target = id;
get();
}
My thought was to try setting data.target.approval_source but that is undefined when I output to the console log. Any thoughts on a path here? TIA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2020 02:02 PM
Did you ever find a solution to this? I am running into the same issue as we want to be able to report on the different ways our users interact when they are approving.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 09:30 PM
Hi Shill,
Did you manage to get this requirement? i have a similar requirement to develop.