SYSTEM$CAST_MULTI_PARTY_APPROVAL_VOTE

functionsupportedGovernance (policies, tags, data quality)Business Critical+

docs.snowflake.com ↗

System functions

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

NameRequiredDescription
'request_id'requiredThe 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'requiredThe vote to cast. One of the following values:
  • APPROVE — Records an approval vote for the request. When the number of approval votes reaches the rule’s required number of approvals, the request status changes to APPROVED and the requester can replay the original statement.
  • REJECT — Records a rejection. A single REJECT vote from an approver immediately terminates the request. A requester can use REJECT to cancel a request that they created.
'comment'requiredA 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

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.