Tool ID:
salesloft_opportunities_indexRun this action
Use the TypeScript SDK for a single call. Putctx.tools.execute(...) inside a Play when the call should be durable, scheduled, or run across a CSV.
import { Deepline } from 'deepline';
const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
'salesloft_opportunities_index',
{
"ids": [
123
],
"created_at": {
"gt": "example",
"gte": "example",
"lt": "example"
},
"updated_at": {
"gt": "example",
"gte": "example",
"lt": "example"
}
},
);
console.log(result.toolResponse.raw);
CLI
deepline tools execute salesloft_opportunities_index --input '{
"ids": [
123
],
"created_at": {
"gt": "example",
"gte": "example",
"lt": "example"
},
"updated_at": {
"gt": "example",
"gte": "example",
"lt": "example"
}
}' --json
Example response
The SDK exposes this shape atresult.toolResponse.raw. Values below are representative.
{
"data": [
{
"id": 123,
"name": "Example",
"amount": "example"
}
]
}
deepline tools get salesloft_opportunities_index --json for the latest machine-readable contract.
Input reference
Lists multiple Opportunity records. Returns Opportunity records synced from the CRM and created via API. The records can be filtered, paged, and sorted using the parameters below and external ID parameters. To Create, Update and Delete opportunities, refer to this External Mapping guide here.| Name | Type | Required | Default | Details |
|---|---|---|---|---|
payload.ids | array | No | — | IDs of opportunities to fetch. If a record can’t be found, that record won’t be returned and your request will be successful |
payload.created_at | object | No | — | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision. |
payload.updated_at | object | No | — | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision. |
payload.crm_id | array | No | — | CRM IDs of opportunities to fetch. If a record can’t be found, that record won’t be returned and your request will be successful |
payload.person_id | integer | No | — | Filters to only opportunities associated with the given person |
payload.tag | array | No | — | Filters opportunities by the tags applied to the opportunity. Multiple tags can be applied |
payload.tag_id | array | No | — | Filters opportunities by the tag id’s applied to the opportunity. Multiple tag id’s can be applied |
payload.account_crm_id | string | No | — | Filters to only opportunities associated with the given crm account |
payload.account_id | integer | No | — | Filters to only opportunities associated with the given account for teams without a CRM connected |
payload.associated_account_id | integer | No | — | Filters to only opportunities associated with the given associated account for CRM connected teams |
payload.owner_crm_id | string | No | — | Filters to only opportunities associated with the given crm owner |
payload.opportunity_type | string | No | — | Filters to only opportunities associated with the opportunity type |
payload.owner_id | integer | No | — | Filters to only opportunities associated with the given user |
payload.name | array | No | — | Filters to only opportunities associated with the given name |
payload.stage_name | string | No | — | Filters to only opportunities associated with the given stage name |
payload.created_date | object | No | — | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision. |
payload.close_date | object | No | — | Returns all matching records that are greater than the provided iso8601 timestamp. The comparison is done using microsecond precision. |
payload.is_closed | boolean | No | — | Filters to only opportunities that are closed |
payload.is_won | boolean | No | — | Filters to only opportunities that are won |
payload.most_recent_cadence_id | integer | No | — | Filters to only opportunities associated with the most recent cadence id |
payload.scoped_fields | array | No | — | Specify explicit scoped fields desired on the Opportunity Resource. |
payload.sort_by | string | No | — | Key to sort on, must be one of: created_at, updated_at, crm_last_updated_date, close_date. Defaults to updated_at |
payload.sort_direction | string | No | — | Direction to sort in, must be one of: ASC, DESC. Defaults to DESC |
payload.per_page | integer | No | — | How many records to show per page in the range [1, 100]. Defaults to 25 |
payload.page | integer | No | — | The current page to fetch results from. Defaults to 1 |
payload.include_paging_counts | boolean | No | — | Whether to include total_pages and total_count in the metadata. Defaults to false |
payload.limit_paging_counts | boolean | No | — | Specifies whether the max limit of 10k records should be applied to pagination counts. Affects the total_count and total_pages data |
Output reference
Standard tool result payload.| Name | Type | Required | Default | Details |
|---|---|---|---|---|
result.data | array | Yes | — | Provider response payload. |
result.data[].id | integer | No | — | ID of Opportunity |
result.data[].name | string | No | — | Opportunity Name |
result.data[].amount | string | No | — | Estimated total sale amount |
result.data[].stage_name | string | No | — | Stage name |
result.data[].probability | string | No | — | Probability |
result.data[].crm_id | string | No | — | The identifier for this record in the CRM |
result.data[].crm_type | string | No | — | CRM type |
result.data[].account_crm_id | string | No | — | Account CRM id |
result.data[].owner_crm_id | string | No | — | Owner CRM id |
result.data[].account_name | string | No | — | Account Full Name |
result.data[].created_by_crm_id | string | No | — | Created By CRM id |
result.data[].opportunity_type | string | No | — | Opportunity Type |
result.data[].owner_crm_name | string | No | — | Owner CRM Name |
result.data[].crm_last_updated_date | string | No | — | Datetime of when the Opportunity was most recently updated in CRM Format: date-time. |
result.data[].close_date | string | No | — | Date when the opportunity is expected to close Format: date-time. |
result.data[].is_closed | boolean | No | — | Whether the opportunity is closed |
result.data[].is_won | boolean | No | — | Whether the opportunity is closed won |
result.data[].crm_url | string | No | — | CRM url, currently Salesforce.com only |
result.data[].created_at | string | No | — | Datetime of when the Opportunity was created Format: date-time. |
result.data[].updated_at | string | No | — | Datetime of when the Opportunity was last updated Format: date-time. |
result.data[].created_date | string | No | — | Datetime of when the Opportunity was created in CRM Format: date-time. |
result.data[].opportunity_window_person_id | integer | No | — | ID of when the attributed person was created in Salesloft |
result.data[].opportunity_window_started_at | string | No | — | Datetime of when the attributed person was created in Salesloft Format: date-time. |
result.data[].custom_fields | record | No | — | Custom fields are defined by the user’s team. Only fields with values are presented in the API. |
result.data[].currency_iso_code | string | No | — | Currency ISO Code |
result.data[].tags | array | No | — | All tags applied to this Opportunities |
result.data[].most_recent_cadence | object | No | — | The most recent cadence associated with the Opportunity |
result.data[].most_recent_cadence.id | integer | No | — | — |
result.data[].most_recent_cadence._href | string | No | — | — |
result.data[].most_recent_step | object | No | — | The most recent step associated with the Opportunity |
result.data[].most_recent_step.id | integer | No | — | — |
result.data[].most_recent_step._href | string | No | — | — |
result.data[].most_recent_step_number | integer | No | — | The most recent step number associated with the Opportunity |
result.data[].most_recent_step_account | object | No | — | The most recent step account id associated with the Opportunity |
result.data[].most_recent_step_account.id | integer | No | — | — |
result.data[].most_recent_step_account._href | string | No | — | — |
result.data[].owner | object | No | — | The owner associated with the Opportunity |
result.data[].owner.id | integer | No | — | — |
result.data[].owner._href | string | No | — | — |
result.data[].creator | object | No | — | The creator associated with the Opportunity |
result.data[].creator.id | integer | No | — | — |
result.data[].creator._href | string | No | — | — |
result.data[].account | object | No | — | The account that this opportunity is associated to |
result.data[].account.id | integer | No | — | — |
result.data[].account._href | string | No | — | — |
result.meta | object | No | — | Additional response metadata (status, paging). |
Deepline cost
- Pricing model:
fixed(per call). - Estimated Deepline credits:
0per pricing unit. - Provider-native pricing may still exist outside Deepline credit billing.