Skip to main content
8 votes

How would I test a trigger on non-writable SurveyResponse object?

This isn't possible today. I've reached out to the Surveys team to ask them either mark the object type as not available for Apex triggers, or make it possible to test Apex triggers on it.
ca_peterson's user avatar
6 votes
Accepted

Is there any fix or workaround for Gack with Error ID: 622456132-619398 (-1311433241) related to `SurveyInvitation` object?

I had the exactly same error, it happens when a SurveyInvitation record is shared to an user, but Survey itself is not. It is easily to verify if this is the same error by removing the InvitationLink ...
Patlatus's user avatar
  • 17.2k
4 votes

Adding Survey to Community

I tried following the steps mentioned here- https://techiesexpress.blogspot.com/2020/12/how-to-embed-survey-component-in.html and I was able to make it work. Check if that helps! Pre-requisites Go to ...
user3359003's user avatar
4 votes

How to use Survey Monkey with integrated Sales Cloud and Marketing Cloud?

Adding to the 1st answer: To be EXTRA safe and not pass SF Ids in the clear, it might be a good idea to encrypt the _subscriberkey using encryptsymmetric() AMPscript function before adding it to the ...
Jonas Lamberty's user avatar
4 votes

How to use Survey Monkey with integrated Sales Cloud and Marketing Cloud?

Have a look at Salesforce Data Events. Essentially you can utilise this entry event to listen to closed cases and inject the records directly in to a journey assuming you have the related Lead or ...
thechrishaddad's user avatar
3 votes
Accepted

Integrate NPS in an email and retrieve data

You can add a parameter to the URL, e.g. ?nps=1 which differs between images. You will then just need a single Cloud Page, and use RequestParameter function, to get the value from nps parameter. ...
Lukas Lunow's user avatar
  • 21.7k
3 votes

Adding Survey to Community

1: From Setup, enter Survey in the Quick Find box, then select Survey Settings. 2: Check which community is selected as the default community for creating public survey invitations. 3: Enter ...
Furkan Kuyular's user avatar
2 votes

How would I test a trigger on non-writable SurveyResponse object?

I think you can test this through a couple of "hacks". If your logic applies to a before insert trigger then we're in luck! Factor out the logic to a handler class and method. For your test code, ...
PartOfTheOhana's user avatar
2 votes
Accepted

Associate Survey to a Case

Please follow the blogs to achieve your requirement to release the survey to the relevant case. (this is possible with the help of process builder and flow https://www.jitendrazaa.com/blog/salesforce/...
Sakthivel Madesh's user avatar
2 votes
Accepted

Integrating Survey Responses in Marketing Cloud

If that Survey object is not available in Data Sources, then you can try using an Import Activity to import the Salesforce Object. If your account is integrated with a Salesforce account, use an ...
Jackson Chen's user avatar
  • 4,725
2 votes
Accepted

Enabled Surveys, but cannot find Surveys tab, how do I find them?

To open Survey tab, simply follow /0Kd link and that will open survey tab if this is not shown. Sometimes it might take some time for Salesforce to update the available tab list
Patlatus's user avatar
  • 17.2k
2 votes

How to add survey in a landing page?

The Survey Tool you describe in indeed limited and has short comings when it comes to putting surveys in email, as a Form directly inside the email is dependent on the handling capabilities of the ...
Gravitai's user avatar
  • 2,850
2 votes

New Created Site can't be Visible on Survey Force.com

This has now been resolved with an update to the package: This is because of Enhanced Domains. If you have deployed enhanced domain on that org then the old code doesn't work. I have made a change. ...
user126644's user avatar
2 votes
Accepted

Create an survey where the pages in the survey will be navigated based on the response in previous page

So if you want to do it in the form submit way (whole page refresh), You can create one cloud page instead of multiple cloud pages (one for each question). the trick is that if you don't specify ...
Bo Hu's user avatar
  • 799
1 vote
Accepted

Error while creating a test class - DML operation Insert not allowed on Survey

Using selectors and unit of work (fflib) pattern, your code would change to roughly List<Survey> surveys = SurveysSelector.newInstance().selectByName(new Set<String> {someSurveyName}); ......
cropredy's user avatar
  • 71.9k
1 vote
Accepted

Is it possible to query data from the Survey Invitations and Responses list via Apex Trigger?

Yes, it is possible to do this with a trigger. Note that there are two different objects combined together in that related list: SurveyResponse and SurveyInvitation. If you are trying to get the ...
fred's user avatar
  • 3,420
1 vote
Accepted

Can't find Surveys page, yet Surveys is enabled?

The "Surveys Page" was hidden from me, here's how I got it to be shown: User Profiles -> Edit select profile -> Tab Settings -> Surveys -> Switch to: "Default On".
Pinto's user avatar
  • 128
1 vote
Accepted

Track email send-out using SQL

If you just want a send count for a particular email for yesterday: SELECT Count(*) sendCount FROM _Job j INNER JOIN _sent s ON S.JobID = j.JobID WHERE j.EMailName LIKE '%YOUREMAILNAMEPATTERNHERE%' ...
Adam Spriggs's user avatar
  • 30.8k
1 vote
Accepted

Sending survey with apex

The ApexType is Surveys, not Survey in the ConnectApi namespace. Survey is in namespace Schema and represents the SObject. surveyOutput = ConnectApi.Surveys.sendSurveyInvitationEmail(surveyId, ...
cropredy's user avatar
  • 71.9k
1 vote
Accepted

"Don't require authentication" open is disabled while sending Survey through email invitation

This appears to be the survey's standard functionality. The "Don't require authentication" is dependent on the recipient that you have selected. When sending a survey email from survey ...
Swetha Maddali's user avatar
1 vote

Survey record is not visible in test class

This may be one of the few situations where it's appropriate to use seeAllData=true Before you resort to that though, you should consider making a query "selector" class instead of ...
Derek F's user avatar
  • 62.4k
1 vote

Sharing App between two orgs

Yes, you can obviously do it. If you want to be quick and dirty about it you can create 2 Sites with public Rest API and pass through those or you can create Authentification Providers with Named ...
ytiq's user avatar
  • 4,555
1 vote

Add Survey in custom object call

There are lots of blog posts on sending surveys triggered on any object. My favorite is https://www.jitendrazaa.com/blog/salesforce/send-salesforce-survey-without-writing-code/ - give it a shot and ...
DavidSchach's user avatar
  • 5,926
1 vote

How to pull survey questions from multiple survey records

Currently, there is no other way than manually adding the questions you want in the new Survey you created.
user3359003's user avatar
1 vote

Field on object not accessible in Report Builder

The participant of a survey is always a lead or a contact or a user. SurveyInvitation object has 3 different fields - LeadId, ContactId and UserId which look like they're integrated in one field onthe ...
Shubham Modi's user avatar
1 vote

Is it possible to change the name of a Survey?

Currently editing a Survey name is not allowed. You can make a copy of the version which has all the details you need and create a brand new Survey and then you can name it to whatever you want. There ...
user3359003's user avatar
1 vote

Need to optimize query result which should not be more than 50000 records in Survey Force unmanaged?

You should look at using Batch Apex to accomplish your goals. You cannot retrieve more than 50,000 records your SOQL calls in a single context. However, with Batch Apex your logic will be processed ...
Rohit Mourya's user avatar
  • 3,871
1 vote

Storing Responses from an HTML Survey in Cloud Pages

The easiest way to push data to Data Extensions from Cloud Pages is using Smart Capture. It is entirely a drag and drop configuration, where you select the Data Extension to which your data should be ...
Lukas Lunow's user avatar
  • 21.7k
1 vote
Accepted

Storing Responses from an HTML Survey in Cloud Pages

You can just redirect the form to another CloudPage which shows confirmation to the user but also has Ampscript code which saves the input into Marketing Cloud. Here is an example with simple HTML. &...
Pradhyoth's user avatar
1 vote
Accepted

Capture Survey Response from an Email and store answers into a Data Extension

As @TomCallahan mentioned, HTML forms are not supported in all email clients. And even in the ones that it is supported, you will usually get a warning or other pop up from the email client warning ...
Gortonington's user avatar
  • 30.7k

Only top scored, non community-wiki answers of a minimum length are eligible