- My View
I have a catalog item where I need send the values which are submitted by user through REST. In the same way the request should get approved through rest api.
For this I have created a transform map with the fields state and number. But, I am trying to send the state values it is giving following error
"message": "Operation Failed",
"detail": "ACL Exception Insert Failed due to security constraints"
I have checked the ACL on particular field where we wrote a script called
answer = isApprovalMine(current);
Now, I am confused and want to understand how can I resolve this issue.
Please guide me with any suggestions
do you any ideas on this????
Hit like if it is correct!
As you found an approval can only come from the people entitled to approve the request. That's what the isApprovalMine method does.
If you want to perform that approval through REST, or any other method, it will require that the approver is authenticated by ServiceNow.
An alternative that I will actually suggest is that the approval is done via email by the approver which is an out of the box functionality that can receive an approve email from the approver's email. Part of the trick is that the subject says: "approve"
You can find the inbound action over here: yourinstanceurl/nav_to.do?uri=sysevent_in_email_action.do?sys_id=b43ef438c611227100a9aa83fe121dda