Liking cljdoc? Tell your friends :D

salesforce.core


+token+clj

source

+version+clj

source

all-versionsclj

(all-versions)

Lists all available versions of the Salesforce REST API

Lists all available versions of the Salesforce REST API
sourceraw docstring

auth!clj

(auth! {:keys [client-id client-secret username password security-token sandbox?
               sandbox-url]})

Get security token and auth info from Salesforce config is a map in the form

  • client-id ID
  • client-secret SECRET
  • username USERNAME
  • password PASSWORD
  • security-token TOKEN
  • sandbox? IS_SANDBOX
  • sandbox-url URL
Get security token and auth info from Salesforce
config is a map in the form
- client-id ID
- client-secret SECRET
- username USERNAME
- password PASSWORD
- security-token TOKEN
- sandbox? IS_SANDBOX
- sandbox-url URL
sourceraw docstring

bulk-abort-jobclj

(bulk-abort-job token job)
source

bulk-close-jobclj

(bulk-close-job token job)
source

bulk-close-or-abort-jobclj

(bulk-close-or-abort-job token job opts)
source

bulk-create-jobclj

(bulk-create-job token options)
source

bulk-delete-jobclj

(bulk-delete-job token job)
source

bulk-get-all-jobsclj

(bulk-get-all-jobs token opts)

the complete list of jobs (might involve continuation)

the complete list of jobs (might involve continuation)
sourceraw docstring

bulk-insert-jobclj

(bulk-insert-job token sobject opts)
source

bulk-job-infoclj

(bulk-job-info token job)
source

bulk-job-result-by-statusclj

(bulk-job-result-by-status token job status)

returns csv a line per submitted value filtered by the supplied state

returns csv a line per submitted value filtered by the supplied state
sourceraw docstring

bulk-upload-job-dataclj

(bulk-upload-job-data token job csv)

todo size limits (split at ~100M), todo spec, todo date formats, use of '#N/A' to clear on upsert

todo size limits (split at ~100M), todo spec, todo date formats, use of '#N/A' to clear on upsert
sourceraw docstring

bulk-upsert-jobclj

(bulk-upsert-job token sobject opts ext-id)
source

clj->sfclj

source

confclj

(conf f)
source

inst->sfdateclj

(inst->sfdate indate)
source

latest-versionclj

(latest-version)

What is the latest API version?

What is the latest API version?
sourceraw docstring

latest-version*clj

Memoized latest-version, used by (with-latest-version) macro

Memoized latest-version, used by (with-latest-version) macro
sourceraw docstring

maps->valvecclj

(maps->valvec maps)

converts maps to vecs of csv content with header

converts maps to vecs of csv content with header
sourceraw docstring

remapclj

(remap m transform)

maps clojure style keyword parameters to salesforce lingo eg (remap {:lineEnding :lf :fred 12 :contentType :csv}) => {:lineEnding "LF", :fred 12, :contentType "CSV"}

maps clojure style keyword parameters to salesforce lingo
eg
(remap {:lineEnding :lf :fred 12 :contentType :csv}) =>
{:lineEnding "LF", :fred 12, :contentType "CSV"}
sourceraw docstring

resourcesclj

(resources token)
source

set-version!clj

(set-version! v)
source

so->allclj

(so->all sobject token)

All sobjects i.e (so->all "Account" auth-info)

All sobjects i.e (so->all "Account" auth-info)
sourceraw docstring

so->createclj

(so->create sobject record token)

Create a new record

Create a new record
sourceraw docstring

so->deleteclj

(so->delete sobject identifier token)

Delete a record

  • sojbect the name of the object i.e Account
  • identifier the object id or a map of the external field id and value
  • token your api auth info
Delete a record
- sojbect the name of the object i.e Account
- identifier the object id or a map of the external field id and value
- token your api auth info
sourceraw docstring

so->describeclj

(so->describe sobject token)

Describe an SObject

Describe an SObject
sourceraw docstring

so->flowclj

(so->flow identifier token & [data])

Invoke a flow (see: https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_distribute_system_rest.htm)

  • indentifier of flow (e.g. "Escalate_to_Case")
  • inputs map (e.g. {:inputs [{"CommentCount" 6 "FeedItemId" "0D5D0000000cfMY"}]})
  • token to your api auth info
Invoke a flow (see: https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_distribute_system_rest.htm)
- indentifier of flow (e.g. "Escalate_to_Case")
- inputs map (e.g. {:inputs [{"CommentCount" 6
                              "FeedItemId" "0D5D0000000cfMY"}]})
- token to your api auth info
sourceraw docstring

so->getclj

(so->get sobject identifier fields token)

Fetch a single SObject or passing in a vector of attributes return a subset of the data

Fetch a single SObject or passing in a vector of attributes
return a subset of the data
sourceraw docstring

so->objectsclj

(so->objects token)

Lists all of the available sobjects

Lists all of the available sobjects
sourceraw docstring

so->recentclj

(so->recent sobject token)

The recently created items under an sobject identifier e.g (so->recent "Account" auth-info)

The recently created items under an sobject identifier
e.g (so->recent "Account" auth-info)
sourceraw docstring

so->updateclj

(so->update sobject identifier record token)

Update a record

  • sojbect the name of the object i.e Account
  • identifier the object id or a map of the external field id and value
  • record map of data to update object with
  • token your api auth info
Update a record
- sojbect the name of the object i.e Account
- identifier the object id or a map of the external field id and value
- record map of data to update object with
- token your api auth info
sourceraw docstring

soqlclj

(soql query token)

Executes an arbitrary SOQL query i.e SELECT name from Account

Executes an arbitrary SOQL query
i.e SELECT name from Account
sourceraw docstring

wait-forclj

(wait-for predicate & {:keys [interval timeout] :or {interval 10 timeout 150}})

Invoke predicate every interval (default 10) seconds until it returns true, or timeout (default 150) seconds have elapsed. E.g.: (wait-for #(< (rand) 0.2) :interval 1 :timeout 10) Returns nil if the timeout elapses before the predicate becomes true, otherwise the value of the predicate on its last evaluation.

Invoke predicate every interval (default 10) seconds until it returns true,
or timeout (default 150) seconds have elapsed. E.g.:
    (wait-for #(< (rand) 0.2) :interval 1 :timeout 10)
Returns nil if the timeout elapses before the predicate becomes true, otherwise
the value of the predicate on its last evaluation.
sourceraw docstring

with-latest-versioncljmacro

(with-latest-version & forms)
source

with-tokencljmacro

(with-token token & forms)
source

with-versioncljmacro

(with-version v & forms)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close