This file contains hidden or 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
<apex:page standardController="Contact" extensions="LookupAutoCompleteKI" lightningStylesheets="true"> | |
<apex:form id="theForm"> | |
<apex:inputText value="{!myvalue}"> | |
<apex:actionSupport event="onclick" action="{!doNothing}" rerender="theForm"></apex:actionSupport> | |
</apex:inputText> | |
<apex:pageBlock id="theForm" title="{!IF(accList!= NULL && accList.size > 0,'All Accounts','There are no records to display')}"> | |
<apex:pageblocktable var="acc" value="{!accList}"> |
This file contains hidden or 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 GenerateSurvey { | |
@InvocableMethod | |
public static void CreateSurveyInv(List < Id > CaseId) { | |
string CaId; | |
string CaseNumber; | |
string communityId; | |
string SurveyId; |
This file contains hidden or 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
List < ServiceAppointment > ServiceA = [select id, EarliestStartTime, DueDate from ServiceAppointment where Id = '08p7F000000dEmEQAU']; | |
for (ServiceAppointment sa: ServiceA) { | |
Id schedulingPolicyId = [SELECT Id FROM FSL__Scheduling_Policy__c WHERE Name = 'Customer First' | |
LIMIT 1 | |
].Id; | |
FSL.ScheduleResult myResult = new FSL.ScheduleResult(); | |
myResult = FSL.ScheduleService.schedule(schedulingPolicyId, sa.Id); |
This file contains hidden or 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
sa.ArrivalWindowStartTime = slots[0].Interval.Start; | |
sa.ArrivalWindowEndTime = slots[0].Interval.Finish; | |
sa.description = 'Passing Via Anonymous Code'; | |
} | |
update ServiceA; |
This file contains hidden or 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
List < ServiceAppointment > ServiceA = [select id, EarliestStartTime, DueDate from ServiceAppointment where Id = '08p7F000000dEmEQAU']; | |
Id schedulingPolicyId = [SELECT Id FROM FSL__Scheduling_Policy__c WHERE Name = 'Customer First' | |
LIMIT 1 | |
].Id; | |
operatinghours oh = new operatinghours(); | |
TimeZone tz = TimeZone.getTimeZone('GMT'); //Time in GMT time | |
FSL.AppointmentBookingService.SortResultsBy sortResults = FSL.AppointmentBookingService.SortResultsBy.Grade; |
This file contains hidden or 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
<apex:page controller="Surveyctlr" action="{!LaunchSurvey}" ></apex:page> |
This file contains hidden or 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
{ | |
"organizationId": "00D7F000006PHbw", | |
"deploymentId": "5727F000000gedQ", | |
"buttonId": "5737F000000HCFr", | |
"sessionId": "f30c5b50-d4a7-49ec-a42b-697f2a1e181d", | |
"userAgent": "Chrome/83.0.4103.61", | |
"language": "en-US", | |
"screenResolution": "1900x1080", | |
"visitorName": "Mallareddy Reddy", | |
"prechatDetails": [ |