Hot answers tagged

7

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.


6

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 field from the query, in such case there is no error in that case. This configuration issue can be solved in three different way: Share related Survey record ...


4

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 survey link, and redirecting survey finishers to a Cloudpage. That CloudPage could then use decryptsymmetric() on the _subscriberkey and create a case in SF. ...


4

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 Contact ID present in this object which seems to be the case according to the Case field reference object. Contact ID on Case object: For the survey part, you ...


3

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. Then it's up to you whether you want to differentiate content on the landing page accordingly, or just store the value.


2

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


2

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 email client. Best practice & recommendation would be to link to a survey on a Webpage / Cloud Page. If you are using Cloud Pages, you could build a custom ...


2

Setup a workflow rule to fire via a Closed Case. You just have to setup the Email Alert that goes out to fire the Timba Survey's template with the Survey Link and everyting. The link would look something like this: 'http://[mydomain].[cs#].force.com/timbasurveys__survey?id=a1KM0000002ZGDqMAO&lId='+[relatedIdofContact/Lead]+'&wf=yes')}


2

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 Setup-->All Community and create a new community by choosing any template. Once the community gets created, click on the builder. In the builder, click on ...


1

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 performing a query directly in the code being tested. Something like public with sharing class SurveyQuerySelector{ // Have a static collection of data that you can ...


1

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 credentials, or create Connected Apps


1

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 see how it goes. Or use the Send Survey action in Process Builder. That is documented in the Survey section of the online Salesforce help.


1

If emails are not being sent from Survey builder, please check below are checked on your org: Make sure you have a Global Action that has its default name: SendEmail. Ensure Setup > Deliverability > Access to Send Email org wide pref is set to "All Emails" (this is OFF by default in Sandbox orgs, and also on trial orgs which haven't verified ...


1

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 Communities in the Quick Find box, then select All Communities. 4: Open the Community Builder of the default community. 5: From Community Builder, click the Settings ...


1

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 import activity to create and populate a data extension with the data from a Salesforce object or report. Email Studio > Email > Interactions > Activities > ...


1

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 posted, and the form fields will automatically be created and reference the Data Extension fields. Another advantage of using Smart Capture, is the ability to ...


1

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. <form action="%%=RedirectTo(CloudPagesURL(pageID,'radAnswer',RequestParameter('radAnswer'), 'otherText',RequestParameter('otherText')))=%%" id="myForm" ...


1

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, initialize the sObject, then put the insert in a try catch block.... in the catch block catch the exception. Granted, this is not asserting the logic, but you're ...


1

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 you that this form is pushing information to an outside web page. Or the form displayed is not styled or displayed as you set it. For instance, Hotmail will ...


1

You need to purchase license "Survey Creator license". You can create only one free survey. View more detail here: https://help.salesforce.com/articleView?id=concept_surveys_org_requirements.htm&type=5


1

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 in chunks of anywhere from 1 to 200 records in a batch. You'd need to modify your business logic to take the batching into account if necessary. Refer Apex ...


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