# Salesforce Marketing Cloud

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

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/salesforce-marketing-cloud

## Actions

### 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**

- Name (`name`, text, required): Name for this request.
- Asset type id (`asset_type_id`, number, required): Asset type id for this request. One of: `197`, `207`, `208`, `209`, `210`, `211`, `212`, `213`, `214`, `215`, `216`, `220`.
- Content (`content`, text): Content for this request.
- Category (`category_id`, number): Category id for this request.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Name (`name`, text, required): Name for this request.
- Description (`description`, text): Description for this request.
- Campaign code (`campaign_code`, text): Campaign code for this request.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Name (`name`, text, required): Name for this request.
- Parent id (`parent_id`, number, required): Parent id for this request.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Delete asset

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

**Inputs**

- Asset (`asset_id`, number, required): Asset id for this request. At least 1.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": null,
  "has_more": false,
  "next_cursor": null
}
```

### Delete campaign

Delete a campaign by its ID.

**Inputs**

- Campaign (`campaign_id`, number, required): Campaign id for this request. At least 1.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": null,
  "has_more": false,
  "next_cursor": null
}
```

### Delete category

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

**Inputs**

- Category (`category_id`, number, required): Category id for this request. At least 1.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Asset (`asset_id`, number, required): Asset id for this request. At least 1.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get campaign

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

**Inputs**

- Campaign (`campaign_id`, number, required): Campaign id for this request. At least 1.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get campaign asset

Get one asset associated with a campaign.

**Inputs**

- Campaign id (`campaign_id`, number, required): The campaign id. At least 1.
- Asset (`asset_id`, number, required): The asset id. At least 1.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Category (`category_id`, number, required): Category id for this request. At least 1.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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 id (`event_id`, text, required): Event id for this request.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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 id (`journey_id`, text, required): Journey id for this request.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Page (`page`, number): Page for this request. At least 1.
- Page size (`page_size`, number): Page size for this request. From 1 to 50.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Campaign (`campaign_id`, number, required): Campaign id for this request.
- Page (`page`, number): Page for this request. At least 1.
- Page size (`page_size`, number): Page size for this request. From 1 to 50.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Page (`page`, number): Page for this request. At least 1.
- Page size (`page_size`, number): Page size for this request. From 1 to 50.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Page (`page`, number): Page for this request. At least 1.
- Page size (`page_size`, number): Page size for this request. From 1 to 50.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Page (`page`, number): Page for this request. At least 1.
- Page size (`page_size`, number): Page size for this request. From 1 to 50.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Page (`page`, number): Page for this request. At least 1.
- Page size (`page_size`, number): Page size for this request. From 1 to 50.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Asset (`asset_id`, number, required): Asset id for this request. At least 1.
- Name (`name`, text): Name for this request.
- Asset type id (`asset_type_id`, number): Asset type id for this request. One of: `197`, `207`, `208`, `209`, `210`, `211`, `212`, `213`, `214`, `215`, `216`, `220`.
- Content (`content`, text): Content for this request.
- Category (`category_id`, number): Category id for this request.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "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**

- Category (`category_id`, number, required): Category id for this request. At least 1.
- Name (`name`, text): Name for this request.
- Parent id (`parent_id`, number): Parent id for this request.

**Outputs**

- `data` (object): The service response, including all records and metadata.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Continuation value for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```
