Created
August 17, 2019 04:17
-
-
Save RockyMtnMarc/1558a95d496816e2d18ed85090848010 to your computer and use it in GitHub Desktop.
Apex Class which retrieves the Survey_URL__c field from the LiveChatTranscript with the specified ChatKey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SurveyRedirectController { | |
public PageReference redirectToSurvey() { | |
String url = [SELECT Id, Survey_URL__c, ChatKey FROM LiveChatTranscript WHERE ChatKey = : ApexPages.currentPage().getParameters().get('chatKey')].Survey_URL__c; | |
PageReference surveyURL = new PageReference(url); | |
return surveyURL; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment