Send Survey Invitation Actions
Send email survey invitations to leads, contacts, and users in your org
based on an action. For example, send a survey invitation when a customer support case
closes.
This action is available in API version 47.0 and later.
Special Access Rules
To access the Send Survey Invitation action, you must have the Feedback Management Survey Response Pack and the Salesforce org enabled with Surveys.
Supported REST HTTP Methods
- URI
- /services/data/v47.0/actions/standard/sendSurveyInvitation
- Formats
- JSON, XML
- HTTP Methods
- GET, HEAD, POST
- Authentication
- Authorization: Bearer token
Inputs
Input | Details |
---|---|
anonymousResponse |
|
autoExpiryDays |
|
emailTemplateName |
|
isUnauthenticatedResponse |
|
personalInvitation |
|
recipient |
|
surveyName |
|
surveyQuestionName |
|
surveySubjectEntity |
|
Outputs
None.
Example
- GET
-
This example shows how to get information about the Send Survey Invitation action type.
curl --include --request GET \ --header "Authorization: Authorization: Bearer 00DR...xyz" \ --header "Content-Type: application/json" \ "https://instance.salesforce.com/services/data/v47.0/actions/standard/sendSurveyInvitation"
- POST
-
Here’s a request for the send survey invitation action.
{ "inputs":[{ "surveyName" : "FlowActionSend", "recipient" : "003RO0000037IRvYAM", "autoExpiryDays" : 6 }] }
Here’s a response for the send survey invitation action.[ { "actionName" : "sendSurveyInvitation", "errors" : null, "isSuccess" : true, "outputValues" : null } ]