# Salesforce Account Engagement

> Manage prospects, segmentation lists, memberships and tags, and read campaigns and visitor activity.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/salesforce-account-engagement

## Actions

### Add list member

Add list member.

**Inputs**

- List (`list_id`, text, required): List id.
- Prospect (`prospect_id`, text, required): Prospect id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "listId": 1,
    "prospectId": 1,
    "updatedAt": "example"
  }
}
```

### Create list

Create list.

**Inputs**

- Name (`name`, text, required): Name.
- Title (`title`, text): Title.
- Description (`description`, text): Description.
- Is public (`is_public`, true/false): Is public.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "isDynamic": false,
    "isPublic": false,
    "name": "example",
    "updatedAt": "example"
  }
}
```

### Create prospect

Create prospect.

**Inputs**

- Email (`email`, text, required): Email.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Company (`company`, text): Company.
- Phone (`phone`, text): Phone.
- Job title (`job_title`, text): Job title.
- Is do not email (`is_do_not_email`, true/false): Is do not email.
- Is do not call (`is_do_not_call`, true/false): Is do not call.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "company": "example",
    "createdAt": "example",
    "email": "example",
    "firstName": "example",
    "id": 1,
    "lastName": "example",
    "updatedAt": "example"
  }
}
```

### Create tag

Create tag.

**Inputs**

- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "name": "example",
    "updatedAt": "example"
  }
}
```

### Delete list

Delete list.

**Inputs**

- List (`list_id`, text, required): List id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "isDynamic": false,
    "isPublic": false,
    "name": "example",
    "updatedAt": "example"
  }
}
```

### Delete prospect

Delete prospect.

**Inputs**

- Prospect (`prospect_id`, text, required): Prospect id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "company": "example",
    "createdAt": "example",
    "email": "example",
    "firstName": "example",
    "id": 1,
    "lastName": "example",
    "updatedAt": "example"
  }
}
```

### Delete tag

Delete tag.

**Inputs**

- Tag (`tag_id`, text, required): Tag id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {}
}
```

### Get campaign

Get campaign.

**Inputs**

- Campaign (`campaign_id`, text, required): Campaign id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "cost": 1.0,
    "id": 1,
    "name": "example"
  }
}
```

### Get list

Get list.

**Inputs**

- List (`list_id`, text, required): List id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "isDynamic": false,
    "isPublic": false,
    "name": "example",
    "updatedAt": "example"
  }
}
```

### Get prospect

Get prospect.

**Inputs**

- Prospect (`prospect_id`, text, required): Prospect id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "company": "example",
    "createdAt": "example",
    "email": "example",
    "firstName": "example",
    "id": 1,
    "lastName": "example",
    "updatedAt": "example"
  }
}
```

### Get tag

Get tag.

**Inputs**

- Tag (`tag_id`, text, required): Tag id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "name": "example",
    "updatedAt": "example"
  }
}
```

### Get visit

Get visit.

**Inputs**

- Visit id (`visit_id`, text, required): Visit id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "firstVisitorPageViewAt": "example",
    "id": 1,
    "lastVisitorPageViewAt": "example",
    "prospectId": 1
  }
}
```

### Get visitor activity

Get visitor activity.

**Inputs**

- Visitor activity id (`visitor_activity_id`, text, required): Visitor activity id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "prospectId": 1,
    "type": 1,
    "typeName": "example"
  }
}
```

### List campaigns

List campaigns. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### List custom fields

List custom fields. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### List list memberships

List list memberships. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.
- Updated after (`updated_after`, date and time): Updated after.
- List (`list_id`, text): List id.
- Prospect (`prospect_id`, text): Prospect id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### List lists

List lists. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.
- Updated after (`updated_after`, date and time): Updated after.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### List prospects

List prospects. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.
- Updated after (`updated_after`, date and time): Updated after.
- Email (`email`, text): Email.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### List tags

List tags. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.
- Updated after (`updated_after`, date and time): Updated after.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### List visitor activities

List visitor activities. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.
- Prospect (`prospect_id`, text): Prospect id.
- Created after (`created_after`, date and time): Created after.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### List visits

List visits. Gets one page; to see more, run it again with the next page it gives.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 1000.
- Next page token (`next_page_token`, text): Next page token.
- Id greater than (`id_greater_than`, number): Id greater than. At least 0.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "nextPageToken": "example",
    "nextPageUrl": "example",
    "values": []
  }
}
```

### Remove list member

Remove list member.

**Inputs**

- Membership id (`membership_id`, text, required): Membership id.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {}
}
```

### Update list

Update list.

**Inputs**

- List (`list_id`, text, required): List id.
- Name (`name`, text): Name.
- Title (`title`, text): Title.
- Description (`description`, text): Description.
- Is public (`is_public`, true/false): Is public.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "id": 1,
    "isDynamic": false,
    "isPublic": false,
    "name": "example",
    "updatedAt": "example"
  }
}
```

### Update prospect

Update prospect.

**Inputs**

- Prospect (`prospect_id`, text, required): Prospect id.
- Email (`email`, text): Email.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Company (`company`, text): Company.
- Phone (`phone`, text): Phone.
- Job title (`job_title`, text): Job title.
- Is do not email (`is_do_not_email`, true/false): Is do not email.
- Is do not call (`is_do_not_call`, true/false): Is do not call.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "company": "example",
    "createdAt": "example",
    "email": "example",
    "firstName": "example",
    "id": 1,
    "lastName": "example",
    "updatedAt": "example"
  }
}
```

### Upsert prospect by email

Create a prospect or update the prospect with this email and the most recent activity. Use an ID to target a specific duplicate instead.

**Inputs**

- Email (`email`, text, required): Email.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Company (`company`, text): Company.
- Phone (`phone`, text): Phone.
- Job title (`job_title`, text): Job title.
- Is do not email (`is_do_not_email`, true/false): Is do not email.
- Is do not call (`is_do_not_call`, true/false): Is do not call.

**Outputs**

- `data` (object): Salesforce Account Engagement response data.

**Example output**

```json
{
  "data": {
    "company": "example",
    "createdAt": "example",
    "email": "example",
    "firstName": "example",
    "id": 1,
    "lastName": "example",
    "updatedAt": "example"
  }
}
```
