Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

bitbucket.org/libertyfund/salesforce

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket.org/libertyfund/salesforce

Source
Go
Version
v0.2.1
Version published
Created
Source

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

FAQs

Package last updated on 01 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts