Conversation
| }, | ||
| sample_output: lambda do |_connection, input| | ||
| sample_output = [{ orgId: '1351205', | ||
| type: 'Event' }]. |
There was a problem hiding this comment.
Layout/DotPosition: Place the . on the next line, together with the method name.
| object = { 'type' => payload['type'], 'orgId' => payload['orgId'] }. | ||
| merge(payload['data']) | ||
| date_fields = %w[start_date last_active last_contacted scheduledAt slotStart lastUpdated | ||
| timestamp slotEnd updatedAt indexedAt createdAt createDateTime updateDateTime] |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [103/80]
| webhook_notification: lambda { |_connection, payload| | ||
| object = { 'type' => payload['type'], 'orgId' => payload['orgId'] }. | ||
| merge(payload['data']) | ||
| date_fields = %w[start_date last_active last_contacted scheduledAt slotStart lastUpdated |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [96/80]
| "#{input['object_name']}&#{connection['verification_token']}" | ||
| }, | ||
| webhook_notification: lambda { |_connection, payload| | ||
| object = { 'type' => payload['type'], 'orgId' => payload['orgId'] }. |
There was a problem hiding this comment.
Layout/DotPosition: Place the . on the next line, together with the method name.
|
|
||
| { body: help.present? ? help : "<b>Configure Drift to send events to Workato.</b>" \ | ||
| '<br>To find your static webhook URI, click on Tools → ' \ | ||
| 'Connector SDK → Drift → Settings then click on <b>Copy static webhook URI</b>.', |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [103/80]
| 'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', | ||
| 'Meeting' => 'Triggers when a previously booked meeting was either rescheduled or canceled.', | ||
| 'Contact' => 'Triggers when a contact record has been updated in Drift.', | ||
| 'User availability' => 'Triggers when a drift user\'s availability has been changed.', |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [96/80]
| help = { | ||
| 'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', | ||
| 'Meeting' => 'Triggers when a previously booked meeting was either rescheduled or canceled.', | ||
| 'Contact' => 'Triggers when a contact record has been updated in Drift.', |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [83/80]
| help: lambda do |_connection, new_updated_object_list| | ||
| help = { | ||
| 'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', | ||
| 'Meeting' => 'Triggers when a previously booked meeting was either rescheduled or canceled.', |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [103/80]
| end, | ||
| help: lambda do |_connection, new_updated_object_list| | ||
| help = { | ||
| 'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [116/80]
| }, | ||
| update_object: { | ||
| title: 'Updated/deleted object ', | ||
| subtitle: 'Triggers when an object is updated, removed, unsubscribed in Drift', |
There was a problem hiding this comment.
Metrics/LineLength: Line is too long. [85/80]
Authentication type
Actions
Triggers
More Details
Issue: https://github.com/workato/issues/issues/10341