Salesforce Marketing Cloud

App · 20 actions

Connect Salesforce Marketing Cloud to automate content, campaigns and journeys.

Actions

ActionWhat it does
Create assetCreate a Content Builder asset with a name and asset type, optionally with content and a folder.
Create campaignCreate a campaign with a name, and optionally a description and campaign code.
Create categoryCreate a Content Builder folder (category) with a name inside a parent folder.
Delete assetDelete a Content Builder asset, such as an email or image, by its ID.
Delete campaignDelete a campaign by its ID.
Delete categoryDelete a Content Builder folder (category) by its ID.
Get assetGet one Content Builder asset by its ID, including its name, type, folder and content.
Get campaignGet one campaign by its ID, with its name, description, campaign code and color.
Get campaign assetGet one asset associated with a campaign.
Get categoryGet one Content Builder folder (category) by its ID, with its name and parent folder.
Get event definitionGet one journey entry event definition by its ID, with its name, event key, type and data extension.
Get journeyGet one Journey Builder journey by its ID, including its status, entry source, activities and settings.
List assetsList the assets in Content Builder, such as emails, templates, blocks and images, a page at a time, with each asset's ID, name and type.
List campaign assetsList the assets associated with a campaign, by campaign ID, with each association's asset type and ID.
List campaignsList the campaigns in your account, a page at a time, with each campaign's ID, name, description and campaign code.
List categoriesList the Content Builder folders (categories), a page at a time, with each folder's ID, name and parent folder.
List event definitionsList the entry event definitions that start journeys, a page at a time, with each event's ID, name, event key and data extension.
List journeysList the Journey Builder journeys in your account, a page at a time, with each journey's ID, name, version and status.
Update assetChange a Content Builder asset by its ID, such as its name, type, content or folder.
Update categoryRename a Content Builder folder (category) or move it to another parent, by its ID.

Create asset

Create a Content Builder asset with a name and asset type, optionally with content and a folder. Returns the new asset with its ID.

Inputs

NamenametextRequired
Name for this request.
Asset type idasset_type_idnumberRequired
Asset type id for this request.One of: 197, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 220.
Contentcontenttext
Content for this request.
Categorycategory_idnumber
Category id for this request.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Create campaign

Create a campaign with a name, and optionally a description and campaign code. Returns the new campaign with its ID.

Inputs

NamenametextRequired
Name for this request.
Descriptiondescriptiontext
Description for this request.
Campaign codecampaign_codetext
Campaign code for this request.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Create category

Create a Content Builder folder (category) with a name inside a parent folder. Returns the new folder with its ID.

Inputs

NamenametextRequired
Name for this request.
Parent idparent_idnumberRequired
Parent id for this request.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Delete asset

Delete a Content Builder asset, such as an email or image, by its ID.

Inputs

Assetasset_idnumberRequired
Asset id for this request.At least 1.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": null,
  "has_more": false,
  "next_cursor": null
}

Delete campaign

Delete a campaign by its ID.

Inputs

Campaigncampaign_idnumberRequired
Campaign id for this request.At least 1.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": null,
  "has_more": false,
  "next_cursor": null
}

Delete category

Delete a Content Builder folder (category) by its ID.

Inputs

Categorycategory_idnumberRequired
Category id for this request.At least 1.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": null,
  "has_more": false,
  "next_cursor": null
}

Get asset

Get one Content Builder asset by its ID, including its name, type, folder and content.

Inputs

Assetasset_idnumberRequired
Asset id for this request.At least 1.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get campaign

Get one campaign by its ID, with its name, description, campaign code and color.

Inputs

Campaigncampaign_idnumberRequired
Campaign id for this request.At least 1.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get campaign asset

Get one asset associated with a campaign.

Inputs

Campaign idcampaign_idnumberRequired
The campaign id.At least 1.
Assetasset_idnumberRequired
The asset id.At least 1.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get category

Get one Content Builder folder (category) by its ID, with its name and parent folder.

Inputs

Categorycategory_idnumberRequired
Category id for this request.At least 1.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get event definition

Get one journey entry event definition by its ID, with its name, event key, type and data extension.

Inputs

Event idevent_idtextRequired
Event id for this request.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Get journey

Get one Journey Builder journey by its ID, including its status, entry source, activities and settings.

Inputs

Journey idjourney_idtextRequired
Journey id for this request.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

List assets

List the assets in Content Builder, such as emails, templates, blocks and images, a page at a time, with each asset's ID, name and type.

Inputs

Pagepagenumber
Page for this request.At least 1.
Page sizepage_sizenumber
Page size for this request.From 1 to 50.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

List campaign assets

List the assets associated with a campaign, by campaign ID, with each association's asset type and ID.

Inputs

Campaigncampaign_idnumberRequired
Campaign id for this request.
Pagepagenumber
Page for this request.At least 1.
Page sizepage_sizenumber
Page size for this request.From 1 to 50.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

List campaigns

List the campaigns in your account, a page at a time, with each campaign's ID, name, description and campaign code.

Inputs

Pagepagenumber
Page for this request.At least 1.
Page sizepage_sizenumber
Page size for this request.From 1 to 50.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

List categories

List the Content Builder folders (categories), a page at a time, with each folder's ID, name and parent folder.

Inputs

Pagepagenumber
Page for this request.At least 1.
Page sizepage_sizenumber
Page size for this request.From 1 to 50.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

List event definitions

List the entry event definitions that start journeys, a page at a time, with each event's ID, name, event key and data extension.

Inputs

Pagepagenumber
Page for this request.At least 1.
Page sizepage_sizenumber
Page size for this request.From 1 to 50.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

List journeys

List the Journey Builder journeys in your account, a page at a time, with each journey's ID, name, version and status.

Inputs

Pagepagenumber
Page for this request.At least 1.
Page sizepage_sizenumber
Page size for this request.From 1 to 50.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Update asset

Change a Content Builder asset by its ID, such as its name, type, content or folder. Returns the updated asset.

Inputs

Assetasset_idnumberRequired
Asset id for this request.At least 1.
Namenametext
Name for this request.
Asset type idasset_type_idnumber
Asset type id for this request.One of: 197, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 220.
Contentcontenttext
Content for this request.
Categorycategory_idnumber
Category id for this request.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

Update category

Rename a Content Builder folder (category) or move it to another parent, by its ID. Returns the updated folder.

Inputs

Categorycategory_idnumberRequired
Category id for this request.At least 1.
Namenametext
Name for this request.
Parent idparent_idnumber
Parent id for this request.

Outputs

dataobject
The service response, including all records and metadata.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page.
Example output
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}

On this page