About ApprovalPolicyApprover
If the organization's ApprovalPolicy requires one or more mandatory approvers, use this API to assign users with approval permission to the approval policy. Pass the approvalPolicyId
(ID of the ApprovalPolicy instance) and usersId
(ID of the mandatory approver).
To assign multiple approvers to the approval policy, use Bulk operations and create multiple instances of ApprovalPolicyApprover, each with the approver's userId
. If the approval policy does not specify mandatory approvers, use SetApprovers to assign approvers to the bill or vendor credit.
Note: If you want to replace an approver in an approval policy, you need to delete the existing approver from an approval policy and then add a new approver to the approval policy using the Create call.
Create
Request
<API_URL_EndPoint>/Crud/Create/ApprovalPolicyApprover.json
data={
"obj" : {
"entity" : "ApprovalPolicyApprover",
"approvalPolicyId" : "app01IVEVRADCRIJ3o68",
"usersId" : "00601ZCLCQAYUDCJddsd"
}
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"entity" : "ApprovalPolicyApprover",
"id" : "apa01FOOXEBSITHRHxwo",
"approvalPolicyId" : "app01IVEVRADCRIJ3o68",
"usersId" : "00601ZCLCQAYUDCJddsd",
"isActive" : "1",
"createdTime" : "2016-12-08T22:25:02.000+0000",
"updatedTime" : "2016-12-08T22:25:02.000+0000"
}
}
Read
Request
<API_URL_EndPoint>/Crud/Read/ApprovalPolicyApprover.json
data={
"id" : "apa01FOOXEBSITHRHxwo"
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"entity" : "ApprovalPolicyApprover",
"id" : "apa01FOOXEBSITHRHxwo",
"approvalPolicyId" : "app01IVEVRADCRIJ3o68",
"usersId" : "00601ZCLCQAYUDCJddsd",
"isActive" : "1",
"createdTime" : "2016-12-08T22:25:02.000+0000",
"updatedTime" : "2016-12-08T22:25:02.000+0000"
}
}
Delete
Once the Approval Policy Approver is deleted, it is marked as inactive ["isActive"
: "2"
].
Request
<API_URL_EndPoint>/Crud/Delete/ApprovalPolicyApprover.json
data={
"id" : "apa01FOOXEBSITHRHxwo"
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"entity" : "ApprovalPolicyApprover",
"id" : "apa01FOOXEBSITHRHxwo",
"approvalPolicyId" : "app01IVEVRADCRIJ3o68",
"usersId" : "00601ZCLCQAYUDCJddsd",
"isActive" : "2",
"createdTime" : "2016-12-08T22:25:02.000+0000",
"updatedTime" : "2016-12-08T22:29:07.000+0000"
}
}
Undelete
Once the Approval Policy Approver is undeleted, it is marked as active ["isActive"
: "1"
].
Request
<API_URL_EndPoint>/Crud/Undelete/ApprovalPolicyApprover.json
data={
"id" : "apa01FOOXEBSITHRHxwo"
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"entity" : "ApprovalPolicyApprover",
"id" : "apa01FOOXEBSITHRHxwo",
"approvalPolicyId" : "app01IVEVRADCRIJ3o68",
"usersId" : "00601ZCLCQAYUDCJddsd",
"isActive" : "1",
"createdTime" : "2016-12-08T22:25:02.000+0000",
"updatedTime" : "2016-12-08T22:29:07.000+0000"
}
}
Resources
Parameters