0.11.10 • Published 3 years ago
cohesive_sdk v0.11.10
Description
This package contains a custom client for Salesforce API. This client allows developers to publish custom events to any SFDC instance.
Usage
- First, initialize the SalesforceClient by calling
SalesforceClient.initialize. createSalesforceEventwill generate a new event.updateSalesforceEventwill update an existing event or throw an error if the event does not exist.upsertSalesforceEventwill update an event with the same subject, meeting date, owner, and attendee. If there are multiple events matching these criteria, override the event that is closest to the request time. If there is no event matching these criteria, create a new event.
const salesforceClient = await SalesforceClient.intialize({
salesforceDomain: 'https://cohesive2-dev-ed.develop.my.salesforce.com',
});
const eventId = await salesforceClient.createSalesforceEvent({
accessToken:
'YOUR_ACCESS_TOKEN',
data: {
AccountId: 'YOUR_ACCOUNT_ID',
MeetingName: 'Test Meeting',
MeetingUrl: 'test.xyz',
MeetingDate: new Date().toISOString(),
MeetingSummary: 'Test Summary',
MeetingAttendee: null,
Sentiment: 'Positive',
DurationInMinutes: 30,
},
mapping: {
AccountId: 'OwnerId',
MeetingName: 'Subject',
MeetingUrl: 'Description',
MeetingDate: 'ActivityDateTime',
MeetingSummary: 'Description',
MeetingAttendee: 'WhoId',
Sentiment: 'Description',
},
});0.11.10
3 years ago
0.11.9
3 years ago
0.11.8
3 years ago
0.11.7
3 years ago
0.11.6
3 years ago
0.11.5
3 years ago
0.11.4
3 years ago
0.11.3
3 years ago
0.11.2
3 years ago
0.11.1
3 years ago
0.11.0
3 years ago
0.10.18
3 years ago
0.10.17
3 years ago
0.10.16
3 years ago
0.10.15
3 years ago
0.10.14
3 years ago
0.10.13
3 years ago
0.10.12
3 years ago
0.10.11
3 years ago
0.10.10
3 years ago
0.10.9
3 years ago
0.9.9
3 years ago
0.8.9
3 years ago
0.7.9
3 years ago
0.6.9
3 years ago
0.5.9
3 years ago
0.4.9
3 years ago
0.3.9
3 years ago
0.2.9
3 years ago
0.1.9
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago