Sample Python Project for creating a new Python Module
Project description
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.
salesforceClient = SalesforceClient.intialize(
salesforceDomain: 'https://cohesive2-dev-ed.develop.my.salesforce.com',
);
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',
},
);
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CohesiveSDK-0.0.1.tar.gz
(9.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CohesiveSDK-0.0.1.tar.gz.
File metadata
- Download URL: CohesiveSDK-0.0.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56c97cb04324496a01adba87e84531167653745508e476944509558a5935479f
|
|
| MD5 |
c030b882f36d990e96094edd41d8c0cd
|
|
| BLAKE2b-256 |
4da8bafdbb96685fe31978dd6c9894cc6ac40875d4a8fc0bcb70bb123b03df2d
|
File details
Details for the file cohesivesdk-0.0.1-py3-none-any.whl.
File metadata
- Download URL: cohesivesdk-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e81d3e19771457a712b9ac4dcd34f17136186e31b5c6097ce3ee8747c10dd6f8
|
|
| MD5 |
058e88f81405f1f85c2d0ab24f63909d
|
|
| BLAKE2b-256 |
7e44e6881b4a213245ec0732d1e75b82311e6094ff455be5e680c4fb0458ebd8
|