Skip to content

[Ortto] - allow additional in traits field #2938

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

Merged
merged 3 commits into from
May 28, 2025
Merged
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
Expand Up @@ -134,6 +134,7 @@ export const commonFields: Record<string, InputField> = {
description: 'An object containing key-value pairs representing custom properties assigned to Contact profile',
type: 'object',
defaultObjectUI: 'keyvalue',
additionalProperties: true,
properties: {
email: {
label: 'Email',
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ const action: ActionDefinition<Settings, Payload> = {
label: 'Activity properties',
description: 'An object containing key-value pairs representing activity attributes',
type: 'object',
defaultObjectUI: 'keyvalue'
defaultObjectUI: 'keyvalue',
additionalProperties: true
}
},
hooks: {
retlOnMappingSave: {
onMappingSave: {
label: 'Associate Audience',
description:
'Link the Contact to an Audience in Ortto. If the Audience does not already exist, it will be created in Ortto.',
Expand Down Expand Up @@ -110,15 +111,15 @@ const action: ActionDefinition<Settings, Payload> = {
return await client.sendActivities(
settings,
[payload],
(hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? ''
(hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? ''
)
},
performBatch: async (request, { settings, payload, hookOutputs }) => {
const client: OrttoClient = new OrttoClient(request)
return await client.sendActivities(
settings,
payload,
(hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? ''
(hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? ''
)
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const action: ActionDefinition<Settings, Payload> = {
batch_size: commonFields.batch_size
},
hooks: {
retlOnMappingSave: {
onMappingSave: {
label: 'Associate Audience',
description:
'Link the Contact to an Audience in Ortto. If the Audience does not already exist, it will be created in Ortto.',
Expand Down Expand Up @@ -76,15 +76,15 @@ const action: ActionDefinition<Settings, Payload> = {
return await client.upsertContacts(
settings,
[payload],
(hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? ''
(hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? ''
)
},
performBatch: async (request, { settings, payload, hookOutputs }) => {
const client: OrttoClient = new OrttoClient(request)
return await client.upsertContacts(
settings,
payload,
(hookOutputs?.retlOnMappingSave?.outputs?.audience_id as string) ?? ''
(hookOutputs?.onMappingSave?.outputs?.audience_id as string) ?? ''
)
}
}
Expand Down
Loading