Skip to content

jfcote87/salesforce

Repository files navigation

README

A partial go implementation of Salesforce's Lightning Platform REST API that provides create, update, delete, upsert and query commands to access/modify salesforce database tables.

Tables are modified using the SObject interface{}. Structs representing table field data that implement the SObject interface maybe created using the genpkgs module.

Example

Create a Private Key and Self-Signed Digital Certificate

ctx := context.Background()
var contactID = "0141S0000009bv2QAA"
var contact salesforce.SObject = <your def package>.Contact{....}

sv, err := jwt.ServiceFromFile(ctx, cfg.SFCredentialFile, nil)
if err != nil {
    log.Fatalf("%v", err)
}
sv.Update(ctx, contact, contactID)

### Explain single operation, collection and batch ###

* create self-signed cert
* upload to SF
* sample config

### Create Object Definitions as struct ###

* demo gen config file

About

Salesforce REST Api go module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages