(all-versions)
Lists all available versions of the Salesforce REST API
Lists all available versions of the Salesforce REST API
(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
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
(bulk-get-all-jobs token opts)
the complete list of jobs (might involve continuation)
the complete list of jobs (might involve continuation)
(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
(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
(latest-version)
What is the latest API version?
What is the latest API version?
Memoized latest-version, used by (with-latest-version) macro
Memoized latest-version, used by (with-latest-version) macro
(maps->valvec maps)
converts maps to vecs of csv content with header
converts maps to vecs of csv content with header
(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"}
(so->all sobject token)
All sobjects i.e (so->all "Account" auth-info)
All sobjects i.e (so->all "Account" auth-info)
(so->create sobject record token)
Create a new record
Create a new record
(so->delete sobject identifier token)
Delete a record
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
(so->describe sobject token)
Describe an SObject
Describe an SObject
(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)
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
(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
(so->objects token)
Lists all of the available sobjects
Lists all of the available sobjects
(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)
(so->update sobject identifier record token)
Update a record
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
(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
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close