Execute approval action | Zoho Creator Help

Execute approval action

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

ApprovalAPIInfoA Struct that has Creator app info and approval type.
ApprovalStatusEnum, status of the Approval.
actionCommentString, Comment for the Approval.
ApprovalSummaryExecuting Action for the particular approval.
completionHandlerApproval 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)
}
}


  1. Fetch recent approval
  2. Fetch approval list
  3. Fetch approval summary