- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 02:07 AM
new x_g_tyl2_cust.approvalUtil().requestApproval(current);
action.setRedirectURL(current);
}
catch (err) {
var action ="Request Approval";
var errorMessage = "Error: We couldn't "+action+" because " + global.JSON.stringify(err);
gs.addErrorMessage(errorMessage);
gs.error(errorMessage);
}
approvalUtil.prototype = {
initialize: function() {},
requestApproval: function(current) {
var gdt = new GlideDateTime();
current.approval = 'requested';
current.u_requested_approval = gdt.getDisplayValue();
current.update();
},
type: 'approvalUtil'
};
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 02:22 AM
Check your script include "ApprovalUtil" if Accessible from is set as All application scopes
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 02:22 AM
Check your script include "ApprovalUtil" if Accessible from is set as All application scopes
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 02:27 AM
It is currently set to accessible from all application scopes with the issue persisting.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 02:29 AM
Are you getting error with this?
What I have observed, getDisplayValue() exhibits issue in scoped app
Aman Kumar