Skip to content

Add batch bytes to Marketo #2904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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<Settings, Payload> = {
Expand All @@ -14,6 +14,7 @@ const action: ActionDefinition<Settings, Payload> = {
data: { ...data },
enable_batching: { ...enable_batching },
batch_size: { ...batch_size },
batch_bytes: { ...batch_bytes },
event_name: { ...event_name }
},
hooks: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
Loading