Salesforce Trigger

Seamlessly integrate Salesforce with your favorite APIs, databases, and programming languages, using WayScript.
Run your script when a Salesforce object is created or updated.

To create, edit, and query Salesforce objects, use the Salesforce module.

Setup

When you drag in a Salesforce Trigger for the first time, follow the prompt to authorize access.

🔑 API Access

First make sure you have API access enabled in Salesforce. To do this, follow these instructions.

New Object Created

Select New Object Created Mode

Your script will run when a new Salesforce object is created.

🌟 New Account

Select New Account Mode

Your script will run when a new account is created.

📤 Outputs

Account = {
id : String,
name : String,
parent_id : String,
number : String,
site : String,
type : String,
industry : String,
annual_rev : Number,
rating : String,
phone : String,
fax : String,
website : String,
ticker : String,
ownership : String,
employees : String,
sic_code : String,
billing_street : String,
billing_city : String,
billing_state : String,
billing_zip : String,
billing_country : String,
shipping_street : String,
shipping_city : String,
shipping_state : String,
shipping_zip : String,
shipping_country : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

📈 New Campaign

Select New Campaign Mode

Your script will run when a new campaign is created.

📤 Outputs

Campaign = {
id : String,
name : String,
active : String,
type : String,
status : String,
start_date : Date,
end_date : Date,
expected_rev : Number,
budgeted_cost : Number,
actual_cost : Number,
expected_response : Number,
num_sent : Number,
parent_id : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

💼 New Case

Select New Case Mode

Your script will run when a new case is created.

📤 Outputs

Case = {
id : String,
subject : String,
status : String,
origin : String,
contact : String,
account_id : String,
type : String,
reason : String,
priority : String,
web_email : String,
web_name : String,
web_company : String,
web_phone : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

👤 New Contact

Select New Contact Mode

Your script will run when a new contact is created.

📤 Outputs

Contact = {
id : String,
name : String,
salutation : String,
acct_id : String,
title : String,
department : String,
birthdate : Date,
reports_to : String,
lead_source : String,
phone : String,
home_phone : String,
mobile : String,
other_phone : String,
fax : String,
email : String,
asst_name : String,
asst_phone : String,
mailing_street : String,
mailing_city : String,
mailing_state : String,
mailing_zip : String,
mailing_country : String,
other_street : String,
other_city : String,
other_state : String,
other_zip : String,
other_country : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

🗓 New Event

Select New Event Mode

Your script will run when a new event is created.

📤 Outputs

Event = {
id : String,
subject : String,
all_day : String,
start : DateType,
end : DateType,
location : String,
name_id : String,
related_to : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

🕵 New Lead

Select New Lead Mode

Your script will run when a new lead is created.

📤Outputs

Lead = {
id : String,
name : String,
salutation : String,
status : String,
company : String,
title : String,
source : String,
industry : String,
annual_rev : Number,
phone : String,
mobile : String,
fax : String,
email : String,
website : String,
rating : String,
employees : Int,
street : String,
city : String,
state : String,
zip : String,
country : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

🗒 New Note

Select New Note Mode

Your script will run when a new note is created.

📤 Outputs

Note = {
id : String,
title : String,
body : String,
is_private : String,
parent_id : String
}
  • JSON Data

    • Raw JSON data received from the API

New Opportunity

Select New Opportunity Mode

Your script will run when a new opportunity is created.

📤Outputs

Opportunity = {
id : String,
is_private : String,
name : String,
close_date : Date,
stage : String,
account_id : String,
type : String,
lead_source : String,
amount : Number,
next_step : String,
probability : Number,
campaign_id : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

📋 New Task

Select New Task Mode

Your script will run when a new task is created.

📤Outputs

Task = {
id : String,
subject : String,
due_date : Date,
priority : String,
status : String,
name_id : String,
related_to : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

Object Updated

Select Object Updated Mode

Your script will run when a Salesforce object is updated.

📈 Campaign Updated

Select Campaign Updated Mode

Your script will run when a campaign is updated.

📤Outputs

Campaign = {
id : String,
name : String,
active : String,
type : String,
status : String,
start_date : Date,
end_date : Date,
expected_rev : Number,
budgeted_cost : Number,
actual_cost : Number,
expected_response : Number,
num_sent : Number,
parent_id : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

💼 Case Updated

Select Case Updated Mode

Your script will run when a case is updated.

📤Outputs

Case = {
id : String,
subject : String,
status : String,
origin : String,
contact : String,
account_id : String,
type : String,
reason : String,
priority : String,
web_email : String,
web_name : String,
web_company : String,
web_phone : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

🕵 Lead Updated

Select Lead Updated Mode

Your script will run when a lead is updated.

📤Outputs

Lead = {
id : String,
name : String,
salutation : String,
status : String,
company : String,
title : String,
source : String,
industry : String,
annual_rev : Number,
phone : String,
mobile : String,
fax : String,
email : String,
website : String,
rating : String,
employees : Int,
street : String,
city : String,
state : String,
zip : String,
country : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

Opportunity Updated

Select Opportunity Updated Mode

Your script will run when an opportunity is updated.

📤Outputs

Opportunity = {
id : String,
is_private : String,
name : String,
close_date : Date,
stage : String,
account_id : String,
type : String,
lead_source : String,
amount : Number,
next_step : String,
probability : Number,
campaign_id : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API

📋 Task Updated

Select Task Updated Mode

Your script will run when a task is updated.

📤Outputs

Task = {
id : String,
subject : String,
due_date : Date,
priority : String,
status : String,
name_id : String,
related_to : String,
description : String
}
  • JSON Data

    • Raw JSON data received from the API