Class ActionStatus

Action Status

A class that represents the status for a request to either invoke or submit a dialog.

Only available for Google Chat apps. Not available for Google Workspace add-ons.

 const 
  
 actionStatus 
  
 = 
  
 CardService 
 . 
 newActionStatus 
 () 
  
 . 
 setStatusCode 
 ( 
 CardService 
 . 
 Status 
 . 
 OK 
 ) 
  
 . 
 setUserFacingMessage 
 ( 
 'Success' 
 ); 

Methods

Method Return type Brief description
Action Status Represents the status for a request to either open or submit a dialog.
Action Status The message to send users about the status of their request.

Detailed documentation

set Status Code(statusCode)

Represents the status for a request to either open or submit a dialog.

 const 
  
 actionStatus 
  
 = 
  
 CardService 
 . 
 newActionStatus 
 (). 
 setStatusCode 
 ( 
  
 CardService 
 . 
 Status 
 . 
 OK 
 , 
 ); 

Parameters

Name Type Description
status Code
Status The status code.

Return

Action Status — This object, for chaining.


set User Facing Message(message)

The message to send users about the status of their request. If unset, a generic message based on the Status is sent.

 const 
  
 actionStatus 
  
 = 
  
 CardService 
 . 
 newActionStatus 
 (). 
 setUserFacingMessage 
 ( 
 'Success' 
 ); 

Parameters

Name Type Description
message
String The message to send.

Return

Action Status — This object, for chaining.

Design a Mobile Site
View Site in Mobile | Classic
Share by: