The activity to log to Outseta.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The response body if response status OK, or response body with validation errors if response status 400.
Get all activity:
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const response = await client.crm.activities.getAll();
console.log(response);
Get all activities for a particular account:
import { EntityType } from 'outseta-api-client/dist/models/shared/entity-type';
const client = new OutsetaApiClient({
subdomain: 'test-company',
apiKey: example_key,
secretKey: example_secret
});
const account = {
Uid: 'jW7GJVWq'
};
const response = await client.crm.activities.getAll({
EntityType: EntityType.Account,
EntityUid: account.Uid
});
console.log(response);
Filter by activity type.
Filter by entity type.
Filter by uid - should be used in conjunction with the EntityType filter.
Not all fields on the model are returned by default - you can request specific fields with a that looks something like ',(field name here).(child field name here or * for all)'. Note: the shape of the returned object may not match the model in this library if this string does not start with '' as shown.
The number of results returned by the API.
For pagination; returns (limit) results after this value.
The response body if response status OK.
Generated using TypeDoc
Record activity to an entity.
Response If the server returns a non-"OK" status, the whole response object will be thrown.