Search...
archiveCard( )
Deprecated. This function is being discontinued in the upcoming months. We are working to provide alternatives, and we'll provide timely updates before implementing any changes. We understand that this transition might present challenges, and we appreciate your patience and understanding.
Description
Archives a workflow card.
The archiveCard()
function returns a Promise that resolves when the
card has been archived.
This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see Retrieving IDs.
Authorization
Request
This endpoint does not take any parameters
Response Object
Fulfilled - When the card has been archived.
Returns an empty object.
Status/Error Codes
Was this helpful?
Archive a card
Copy Code
1import { Permissions, webMethod } from 'wix-web-module';2import { workflows } from 'wix-crm-backend';34export const archiveCard = webMethod(Permissions.Anyone, (cardId) => {5 return workflows.archiveCard(cardId);6});78// Returns a promise that resolves to void.