{
"name": "OneClick example",
"flow": [
{
"id": 1,
"module": "gateway:CustomWebHook",
"version": 1,
"parameters": {
"hook": 904099,
"maxResults": 1
},
"mapper": {},
"metadata": {
"designer": {
"x": 0,
"y": 0
},
"restore": {
"parameters": {
"hook": {
"data": {
"editable": "true"
},
"label": "OneClick example"
}
}
},
"parameters": [
{
"name": "hook",
"type": "hook:gateway-webhook",
"label": "Webhook",
"required": true
},
{
"name": "maxResults",
"type": "number",
"label": "Maximum number of results"
}
],
"interface": [
{
"name": "identifier",
"type": "text"
},
{
"name": "resource",
"type": "text"
},
{
"name": "view",
"type": "text"
},
{
"name": "userId",
"type": "text"
},
{
"name": "companyId",
"type": "text"
},
{
"name": "selectedIds",
"type": "text"
},
{
"name": "fields",
"spec": [
{
"name": "deal",
"spec": [
{
"name": "b51f93e828ffd5703bbc3f33e03198fd0135441a",
"spec": [
{
"name": "field_label_value",
"type": "text"
},
{
"name": "field_name",
"type": "text"
},
{
"name": "field_type",
"type": "text"
},
{
"name": "field_value",
"type": "text"
},
{
"name": "is_required",
"type": "boolean"
}
],
"type": "collection"
}
],
"type": "collection"
},
{
"name": "organization",
"spec": [
{
"name": "56b852ae3f4ffe85a4175463958c93adc9ed34ce",
"spec": [
{
"name": "field_label_value",
"type": "text"
},
{
"name": "field_name",
"type": "text"
},
{
"name": "field_type",
"type": "text"
},
{
"name": "field_value",
"type": "text"
},
{
"name": "is_required",
"type": "boolean"
}
],
"type": "collection"
}
],
"type": "collection"
},
{
"name": "person",
"spec": [
{
"name": "email",
"spec": [
{
"name": "field_label_value",
"type": "text"
},
{
"name": "field_name",
"type": "text"
},
{
"name": "field_type",
"type": "text"
},
{
"name": "field_value",
"spec": {
"spec": [
{
"name": "value",
"type": "text"
},
{
"name": "primary",
"type": "boolean"
},
{
"name": "label",
"type": "text"
}
],
"type": "collection"
},
"type": "array"
},
{
"name": "is_required",
"type": "boolean"
}
],
"type": "collection"
}
],
"type": "collection"
},
{
"name": "disposable",
"spec": [
{
"name": "my_date_field",
"spec": [
{
"name": "field_label_value",
"type": "text"
},
{
"name": "field_name",
"type": "text"
},
{
"name": "field_type",
"type": "text"
},
{
"name": "field_value",
"type": "text"
},
{
"name": "is_required",
"type": "boolean"
}
],
"type": "collection"
}
],
"type": "collection"
}
],
"type": "collection"
},
{
"name": "__IMTHEADERS__",
"spec": [
{
"name": "name",
"type": "text",
"label": "Name"
},
{
"name": "value",
"type": "text",
"label": "Value"
}
],
"type": "array",
"label": "Headers"
}
]
}
},
{
"id": 7,
"module": "pipedrive:CreateNote",
"version": 2,
"parameters": {
"__IMTCONN__": 1855905
},
"mapper": {
"content": "{{1.fields.deal.b51f93e828ffd5703bbc3f33e03198fd0135441a.field_name}}: {{1.fields.deal.b51f93e828ffd5703bbc3f33e03198fd0135441a.field_label_value}} (option ID: {{1.fields.deal.b51f93e828ffd5703bbc3f33e03198fd0135441a.field_value}})
\n{{1.fields.organization.`56b852ae3f4ffe85a4175463958c93adc9ed34ce`.field_name}}: {{1.fields.organization.`56b852ae3f4ffe85a4175463958c93adc9ed34ce`.field_label_value}}
\n{{1.fields.person.email.field_name}}: {{1.fields.person.email.field_label_value}}
\n{{1.fields.disposable.my_date_field.field_name}}: {{1.fields.disposable.my_date_field.field_label_value}}",
"deal_id": "{{1.selectedIds}}"
},
"metadata": {
"designer": {
"x": 300,
"y": 0
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "OneClick tenant",
"data": {
"scoped": "true",
"connection": "pipedrive-apikey"
}
}
},
"expect": {
"pinned_to_deal_flag": {
"mode": "chose"
},
"pinned_to_organization_flag": {
"mode": "chose"
},
"pinned_to_person_flag": {
"mode": "chose"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:pipedrive-auth,pipedrive-apikey",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "content",
"type": "text",
"label": "Content",
"required": true
},
{
"name": "deal_id",
"type": "number",
"label": "Deal ID"
},
{
"name": "person_id",
"type": "number",
"label": "Person"
},
{
"name": "org_id",
"type": "number",
"label": "Organization"
},
{
"name": "add_time",
"type": "date",
"label": "Add time"
},
{
"name": "pinned_to_deal_flag",
"type": "boolean",
"label": "Pinned to deal flag"
},
{
"name": "pinned_to_organization_flag",
"type": "boolean",
"label": "Pinned to organization flag"
},
{
"name": "pinned_to_person_flag",
"type": "boolean",
"label": "Pinned to person flag"
}
]
}
}
],
"metadata": {
"instant": true,
"version": 1,
"scenario": {
"roundtrips": 1,
"maxErrors": 3,
"autoCommit": true,
"autoCommitTriggerLast": true,
"sequential": false,
"confidential": false,
"dataloss": false,
"dlq": false,
"freshVariables": false
},
"designer": {
"orphans": []
},
"zone": "eu1.make.com"
}
}