Unable to view Approval Record Data when record is created through an API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 10:09 AM
Good morning,
We have several API's that create change requests in our application. We have noticed that when an API creates a change request, the approval record widget on the approval page does not display the information of the change request. When the same record is created through the UI, the approvers are able to see all of the data under the Options chevron. This behavior happens regardless of the account that is used to create the record through the API. My assumption was this was a roles/acl issue but I am able to recreate the same behavior using an admin account. The approvers are able to navigate to the service desk and view the approving record without an issue. This seems to only happen on the Approval page on the Service Portal
When I logged to the console using $scope.data on the Approval Record Widget, the Object does not return any variables when created through the API. However, when an approval is created through the UI the change variables are returned in the object without an issue(with the same approver).
Anyone have any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 12:07 PM
Ah.. seems like you are using the variables within a Change Request.
That explains how you can see the data on the portal page.
Can you share what you mean by created via the UI?
Is it from a catalog item? Backend form view? or something else?
When you create a Change via the API, you are not populating the variables hence you are not seeing anything on the portal page.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 08:31 AM
Hello , I have the same issue with an scoped application. Parent table is "task".
Do you have a solution to create these variable thanks to Business rule after API creation?