Introduction to Salesforce Feedback Management
Salesforce Surveys Object Model
Salesforce Surveys Standard Objects
Set Up Your Environment
Access Token
Survey Responses Using Invitation Configurations (POST, PATCH)
Previous Versions
Create responses using the invitation configuration details and initiate the process of submitting the survey responses by making a POST request. Submit the survey responses using the PATCH request.
Salesforce Feedback Management Business API performance can be impacted if a POST request exceeds 3600 calls per minute and if a PATCH request exceeds 1800 calls per minute at the organization level.
Note
You can create a survey to collect data from customers, employees, or other people whose feedback you need. The survey responses are stored in the SurveyResponse object and the responses to individual questions in the SurveyQuestionResponse object.
1/<MyDomainURL>/<AppPrefix>/survey-response1https://yourInstance.salesforce-scrt.com/surveys/v1/survey-responsev1
No
PATCH, POST
The HTTP header request format only accepts Content-Type: application/json.
Note
The Feedback Management - Growth license is required to use this resource.
Ensure the survey is shared to the guest profile from Sharing Settings in Salesforce Setup.
Note
Use the bearer token from the accessToken request.
1Authorization: Bearer <accessToken>To use the participant or associated record merge fields, ensure these prerequisites are met.
See Also
<SurveyDescriptionInput>
1{
2 "languageCode": "en",
3 "surveyDeveloperName": "sample_survey",
4 "invitationSettings" : {
5 "recipientId": "003RM000008DecmYAC",
6 "collectAnonymousResponse" : false,
7 "invitationExpirationDate":"2023-07-31T21:32:54Z"
8 }
9}| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
invitationSettings | Survey Invitation Settings Input | Invitation settings of the survey. | Required | v1 |
languageCode | String | Code of the language to get the survey page or question details. Ensure the survey is shared to the participant in this specified language. | Optional | v1 |
surveyDeveloperName | String | Name of the survey. | Required | v1 |
recipientEngagementContext | Map<String, String> | Engagement context settings for a recipient of the survey. | Optional | v1 |
relatedRecordIds | String[] | IDs of the records that are related to the survey. | Optional | v1 |
staticMergeFields | Map<String, String> | Map of static merge field values. | Optional | v1 |
<SurveyResponseInput>
Here’s an example for a single question.
1{
2 "invitationId": "0Kixx0000004MWaCAM",
3 "invitationUuid": "11845-39854594-3438",
4 "surveyDeveloperName": "sample_survey",
5 "languageCode": "en",
6 "flowInterviewState" : "state1",
7 "navigationAction" : "Next",
8 "surveyPageResponses" : {
9 "name" : "p_ff794819_c0f0_4e0d_b357_29ca1694cfc4",
10 "questionResponses" : [
11 {
12 "name": "q_113419b1_5d29_4bb9_8b10_e3fe324ae040",
13 "questionType" : "MultiChoice",
14 "responses" : [{"name" : "c_9775c2e5_9086_44a8_a5c9_89fdc886c99a"},
15 {"name" : "c_0f1f63cc_608a_4560_9d29_72b203f195f2"}]
16 }
17 ]
18 }
19}| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
flowInterviewState | String | State of the flow interview. | Required | v1 |
invitationId | String | ID of the survey invitation. | Required | v1 |
invitationUuid | String | Random ID of the survey invitation that’s generated for enhanced security. | Required | v1 |
languageCode | String | Code of the language to get the survey page or question details. Ensure the survey is shared to the participant in this specified language. | Optional | v1 |
navigationAction | String | Available navigation actions on the survey page. Possible values are:
| Required | v1 |
surveyDeveloperName | String | Name of the survey. | Required | v1 |
surveyPageResponses | Survey Page Response Input | Responses to the survey questions on a page. | Required | v1 |