SYSTEM$CAST_MULTI_PARTY_APPROVAL_VOTE
functionsupportedGovernance (policies, tags, data quality)Business Critical+Casts a vote on a pending Multi-party Approval request. An approver calls this function with a decision of APPROVE or REJECT to vote on a request. A requester can call it with REJECT to cancel their own pending request before it is approved or expires. This feature requires Business Critical (or higher). To inquire about upgrading, please contact Snowflake Support.
Syntax
supportedpartialnot supportednot scored
SYSTEM$CAST_MULTI_PARTY_APPROVAL_VOTE( '<request_id>', '<decision>' [ , '<comment>' ] )
Parameters
| Name | Required | Description |
|---|---|---|
'request_id' | required | The unique identifier for the approval request to vote on. This value is returned in the MPA_APPROVAL_REQUIRED error when a protected operation is intercepted by the Multi-party Approval engine. |
'decision' | required | The vote to cast. One of the following values:
|
'comment' | required | A comment explaining the vote. This argument is required, except when a requester uses REJECT to cancel their own request, in which case it’s optional. |
Returns
A confirmation string indicating the vote was recorded successfully.
Usage notes
- You must call this function from a worksheet in an active Snowsight session. You can’t call it from another SQL client.
- Approvers can also review and vote on requests from the Snowsight Requests & Approvals page. Casting a vote through the UI is equivalent to calling this function.
- A single REJECT vote terminates a request immediately, regardless of how many approvals it has already received.
- You can only cancel requests that you created. Attempting to cancel a request created by another user fails.
- A comment is required for every vote, except when a requester uses REJECT to cancel their own request.
- You can vote on or cancel a request at any time while it is in PENDING state. To view pending requests, go to the Snowsight Requests & Approvals page.
Access control requirements
No additional privileges are required to call this function. To cast an APPROVE vote or an approver REJECT vote, you must be listed as an approver for the request’s rule. To cancel a request, you must be the user who created it.