0.0.4 • Published 9 years ago

worksmith_salesforce v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

worksmith_salesforce

Salesforce activities for worksmith

This package contains the following activities/tasks:

namedescription
connectLogs you into Salesforce and create a connection object for later used in other SF activites
createEntityCreates a Salesforce entity with the specified type and fields.

connect activity

Logs you into Salesforce and create a connection object for later used in other SF activites

params
nametypedescription
loginUrlstringThe SF login authority to connect agains e.g. eu5.salesforce.com
usernamestring...
passwordstring...
example
var worksmith = require('worksmith')
worksmith.use("sf", require('worksmith_salesforce'))
var wf = worksmith({task:"sequence", items : [{
    task:"sf/connect",
    loginUrl:"https://eu5.salesforce.com",
    username:"peter.zentai@*********.com",
    password:"**************************",
    resultTo: "sfcn"
}])

createEntity activity

Creates a Salesforce entity with the specified type and fields.

params
nametypedescription
connectionconnection objectusually the result of a connect actity
entityTypestringthe name of the entity type to create
fieldsobjectthe hash of the fields to create the entity with
example
{
    task:"sf/createEntity",
    connection:"@sfcn",
    entityType:"Account",
    fields: {
        Name: "PeterZentai"
    },
    resultTo:"newAccount"
}
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago