@openfn/language-salesforce
TypeScript icon, indicating that this package has built-in type declarations

4.8.6 • Public • Published

Language Salesforce

An OpenFn adaptor for building integration jobs for use with the Salesforce API.

Documentation

View the docs site for full technical documentation.

Release notes and deprecated CHANGELOG.md

See releases for all changes.

Configuration

View all the required and optional properties for state.configuration in the official configuration-schema definition.

Intent


Allow communication with Salesforce using a set of Lisp compatible expressions.

Using simple functions we can create a simplified API, simple enough to generate code from data.

Expressions


Expressions are a simplified set of function calls. Outlining the operations needed to be performed.

An uncompiled expression has no knowledge of the internals of the adaptor, credentials or runtime environment.

It's the responsibility of the build process to provide a wrapper that will inject the functions in.

For example:

describe('vera__Test_Event__c'),
  create('vera__Test_Event__c', {
    vera__Test_Event_Name_Unique__c: 'hello from jsforce',
  }),
  create('vera__Boat__c', {
    Name: 'Catatafish redux!',
    vera__Test_Event__c: reference(0),
  });

Development

Clone the adaptors monorepo. Follow the Getting Started guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To just build the docs run pnpm build docs

## Other

Create SOAP session

curl https://test.salesforce.com/services/Soap/u/47.0 -H "Content-Type: text/xml; charset=UTF-8" -H "SOAPAction: login" -d @tmp/login.txt | xmllint --format -

Close jobs

curl
https://openfn.my.salesforce.com/services/async/47.0/job/some_id -H 'X-SFDC-Session: abc123sessionID456xyz' -H "Content-Type: application/xml; charset=UTF-8" -d @tmp/close_job.txt | xmllint --format -

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.8.622latest
0.0.1-alpha1next

Version History

VersionDownloads (Last 7 Days)Published
4.8.622
4.8.52
4.8.42
4.8.31
4.8.210
4.8.13
4.8.04
4.7.01
4.6.111
4.6.101
4.6.91
4.6.81
4.6.72
4.6.61
4.6.51
4.6.41
4.6.31
4.6.24
4.6.11
4.6.02
4.5.22
4.5.11
4.5.01
4.3.11
4.3.01
0.0.1-alpha1
4.2.21
4.2.12
4.2.01
4.1.01
4.0.81
4.0.71
4.0.61
4.0.51
4.0.41
4.0.31
4.0.21
4.0.11
3.0.71
3.0.62
3.0.51
3.0.41
3.0.31
3.0.21
3.0.11
3.0.01
2.12.31
2.12.22
2.12.11
2.12.01
2.11.21
2.11.11
2.11.02
2.10.01
2.9.01
2.8.11
2.8.01
2.7.41
2.7.31
2.7.21
2.7.11
2.7.01
2.6.311
2.6.01
2.5.21
2.5.11
2.4.01
2.3.51
2.3.41
2.3.31
2.3.21
2.3.12
2.3.01
2.2.71
2.2.01
2.1.01

Package Sidebar

Install

npm i @openfn/language-salesforce

Weekly Downloads

43

Version

4.8.6

License

LGPLv3

Unpacked Size

169 kB

Total Files

12

Last publish

Collaborators

  • mtuchi
  • elias-ba
  • stuartc-openfn
  • taylordowns2000