diff --git a/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts b/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts index 17ececfc8f..168e062ff8 100644 --- a/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts +++ b/packages/destination-actions/src/destinations/marketo-static-lists/addToList/index.ts @@ -1,7 +1,7 @@ import type { IntegrationError, ActionDefinition } from '@segment/actions-core' import type { Settings } from '../generated-types' import type { Payload } from './generated-types' -import { external_id, lookup_field, data, enable_batching, batch_size, event_name } from '../properties' +import { external_id, lookup_field, data, enable_batching, batch_size, event_name, batch_bytes } from '../properties' import { addToList, addToListBatch, createList, getList } from '../functions' const action: ActionDefinition = { @@ -14,6 +14,7 @@ const action: ActionDefinition = { data: { ...data }, enable_batching: { ...enable_batching }, batch_size: { ...batch_size }, + batch_bytes: { ...batch_bytes }, event_name: { ...event_name } }, hooks: { diff --git a/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts b/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts index e9fd46db96..d16a43ff4e 100644 --- a/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts +++ b/packages/destination-actions/src/destinations/marketo-static-lists/properties.ts @@ -89,6 +89,15 @@ export const batch_size: InputField = { required: true } +export const batch_bytes: InputField = { + type: 'number', + label: 'Batch Bytes', + description: 'The number of bytes to write to the Marketo in a single batch. Limit is 10MB.', + default: 10000000, // 10MB, + required: false, + unsafe_hidden: true +} + export const event_name: InputField = { label: 'Event Name', description: 'The name of the current Segment event.',