You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the `sfdx-project.json` file located in `salesforceApp/scheduler-salesforce-app` and update the `sfdcLoginUrl` with the domain URL of your Salesforce account as shown in image (fig 2). You can obtain the domain URL from the `My Domain` setup tab in Salesforce as shown in image (fig 1).
4. Open the `scheduler.js` file located in `force-app/main/default/lwc/scheduler` and implement the scheduler code in renderedCallback function. The static scripts and styles are loaded using the `loadScript` and `loadStyle` imports. Here's an example of the modified file.
206
206
207
-
```
208
-
import { LightningElement, api } from 'lwc';
209
-
import { ShowToastEvent } from "lightning/platformShowToastEvent";
210
-
import { loadStyle, loadScript } from "lightning/platformResourceLoader";
211
-
import { createRecord, updateRecord, deleteRecord } from "lightning/uiRecordApi";
212
-
// Static resources
213
-
import schedulerFiles from "@salesforce/resourceUrl/syncfusionscheduler";
214
-
215
-
// Controllers
216
-
import getEvents from "@salesforce/apex/SchedulerData.getEvents";
217
-
function getEventsData(eventData) {
218
-
const data = eventData.events.map((a) => ({
219
-
Id: a.Id,
220
-
Subject: a.Name,
221
-
Location: a.Location__c,
222
-
StartTime: a.Start_Time__c,
223
-
EndTime: a.End_Time__c,
224
-
IsAllDay: a.IsAllDay__c,
225
-
RecurrenceRule: a.RecurrenceRule__c,
226
-
RecurrenceID: a.Recurrence_Id__c,
227
-
RecurrenceException: a.RecurrenceException__c
228
-
}));
229
-
return data;
230
-
}
207
+
{% if page.publishingplatform == "typescript" %}
231
208
232
-
export default class Scheduler extends LightningElement {
N> You can also explore our [**JavaScript Scheduler**](https://www.syncfusion.com/javascript-ui-controls/js-scheduler) example to knows about the Salesforce integration.
322
+
N> You can also explore our [**JavaScript Scheduler Salesforce integration**](https://github.com/SyncfusionExamples/salesforce-integration-in-ej2-javascript-scheduler) example to knows about the Salesforce integration.
0 commit comments