mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-06 15:59:59 +08:00
53 lines
6.0 KiB
JSON
53 lines
6.0 KiB
JSON
{
|
|
"sections": [
|
|
"title",
|
|
"description",
|
|
"fields",
|
|
"special_access_rules",
|
|
"usage"
|
|
],
|
|
"title": "Approval - Data API",
|
|
"description": "Represents an approval request for a Contract.",
|
|
"fields_columns": [
|
|
"type",
|
|
"properties",
|
|
"description"
|
|
],
|
|
"fields": {
|
|
"ApproveComment": {
|
|
"type": "string",
|
|
"properties": "Filter, Nillable, Sort",
|
|
"description": "Text entered by the user when they approved or rejected this approval request. Required. Limit: 4,000 characters."
|
|
},
|
|
"IsDeleted": {
|
|
"type": "boolean",
|
|
"properties": "Defaulted on create, Filter",
|
|
"description": "Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted."
|
|
},
|
|
"OwnerId": {
|
|
"type": "reference",
|
|
"properties": "Filter, Group, Sort",
|
|
"description": "ID of the User being asked to approve or reject the approval request. Must be a valid User ID. Required.",
|
|
"required": true
|
|
},
|
|
"ParentId": {
|
|
"type": "reference",
|
|
"properties": "Filter, Group, Sort",
|
|
"description": "ID of the Contract associated with this approval request. Must be a valid contract ID.",
|
|
"required": true
|
|
},
|
|
"RequestComment": {
|
|
"type": "string",
|
|
"properties": "Filter, Nillable, Sort",
|
|
"description": "Text entered by the User who created the approval request. Optional. This field can't be updated after the Approval has been created. Limit: 4,000 characters."
|
|
},
|
|
"Status": {
|
|
"type": "picklist",
|
|
"properties": "Filter, Group, Restricted picklist, Sort",
|
|
"description": "Status of this approval request. One of the following picklist values: Pending—Specified only when the Approval request is created (create() call) Approved—Specified only when the Approval request is approved (update() call) Rejected—Specified when the Approval request is rejected (update() call) or when it is created (create() call) and immediately rejected for archival/historical purposes.",
|
|
"required": true
|
|
}
|
|
},
|
|
"special_access_rules": "Customer Portal users can't access this object.",
|
|
"usage": "This object allows client applications to programmatically handle approval requests for a Contract. Initially, to request a Contract approval, a client application might create a new Approval request record, specifying the ParentId, OwnerId (user approving or rejecting the request), Status (Pending), and (optionally) RequestComment fields. Note that when a client application creates the first approval request, if the value of the Contract Status field is Draft, then the Approval Status for this record is automatically changed to In Approval Process (see ContractStatus for more information). A client application might subsequently update an existing Approval request, specifying the Status (Approved or Rejected) and an ApproveComment (required); the RequestComment field can't be updated. Updating an Approval record (either to approve or reject) requires the client application to be logged in with “Approve Contract” permission. To update an Approval request, its Status must be Pending—a client application can't update an Approval that has already been Approved or Rejected. To re-submit an approval request for a given Contract, a client application must create a new, separate Approval record and repeat the approval process. Once a Contract has been approved (not rejected), the Contract LastApprovedDate field is automatically updated, however the Contract Status field isn't updated, it keeps the value InApproval. An approved Contract must be activated explicitly. Client applications can activate a Contract by setting the value in its Status field to Activated, or a User can activate a Contract via the Salesforce user interface. A Contract can have multiple approval requests in various states (Pending, Approved, and Rejected). In addition, one User can have multiple approval requests associated with the same Contract. Client applications can't explicitly deleteApproval records. Approval records are deleted automatically if the parent Contract is deleted.\n\nThis object allows client applications to programmatically handle approval requests for a Contract. Initially, to request a Contract approval, a client application might create a new Approval request record, specifying the ParentId, OwnerId (user approving or rejecting the request), Status (Pending), and (optionally) RequestComment fields. Note that when a client application creates the first approval request, if the value of the Contract Status field is Draft, then the Approval Status for this record is automatically changed to In Approval Process (see ContractStatus for more information).\n\nA client application might subsequently update an existing Approval request, specifying the Status (Approved or Rejected) and an ApproveComment (required); the RequestComment field can't be updated. Updating an Approval record (either to approve or reject) requires the client application to be logged in with “Approve Contract” permission. To update an Approval request, its Status must be Pending—a client application can't update an Approval that has already been Approved or Rejected. To re-submit an approval request for a given Contract, a client application must create a new, separate Approval record and repeat the approval process.\n\nOnce a Contract has been approved (not rejected), the Contract LastApprovedDate field is automatically updated, however the Contract Status field isn't updated, it keeps the value InApproval.\n\nAn approved Contract must be activated explicitly. Client applications can activate a Contract by setting the value in its Status field to Activated, or a User can activate a Contract via the Salesforce user interface.\n\nA Contract can have multiple approval requests in various states (Pending, Approved, and Rejected). In addition, one User can have multiple approval requests associated with the same Contract.\n\nClient applications can't explicitly deleteApproval records. Approval records are deleted automatically if the parent Contract is deleted."
|
|
} |