SurveyInvitationLinkShortener Interface

Use this interface to provide a class factory that Salesforce can call to create instances of your custom SurveyInvitationLinkShortener.

sfdc_surveys

Implement an instance of the SurveyInvitationLinkShortener interface to shorten the survey invitation that can be distributed as short URLs over customer engaged channels, such as SMS, WhatsApp, or Facebook Messenger.

To implement this interface, you must have the Salesforce Feedback Management license enabled in your Salesforce organization.

The following are methods for SurveyInvitationLinkShortener.

Returns a shortened URL for a given survey invitation.

public String getShortenedURL(String var1)

Type: String

This is an example implementation of the sfdc_surveys.SurveyInvitationLinkShortener interface.

This sample code uses Named Credentials for authentication. For more information on Named Credentials, see Named Credentials as Callout Endpoints.