This service lets you fetch Approval tasks in your Zoho Creator applications and execute approval actions.
Execute approval action
Methods
func executeApprovalAction(ofType actionStatus: ApprovalStatus, with actionComment : String, inSummary approvalSummary : ApprovalSummary, completionHandler : @escaping (Result) -> Void)
Parameters
| ApprovalAPIInfo | A Struct that has Creator app info and approval type. |
|---|---|
| ApprovalStatus | Enum, status of the Approval. |
| actionComment | String, Comment for the Approval. |
| ApprovalSummary | Executing Action for the particular approval. |
| completionHandler | Approval summary detail will be returned in completion Handler. |
Example
ZCApprovalAPIService.executeApprovalAction(ofType: .approved, with: "Approval Message", inSummary: summary) { (result) in switch result { case .success(let action): print(action) tableView.reloadData() case .failure(let error): print(error) } }