Hi, I’m returning some data from my application api to zapier thru a rest hook. I have defined some output fields for the resource `claim
` and then made a trigger for a new claim and provided it with the resource key. I’ll show how I receive data in zapier, how I’ve set up the output fields and how I see them in the next step. I’d really like some help with this.
The received data format in zapier:
main object {claim: {}, client: {}}
omitting client for the sake of size
claim:
uid: random id
reference: some ref
claimType:
id: random id
name: some name
description:
en: some lorem ipsum here.
flow:
id: random id
name: flow name
mainStage: incomplete
assignedTo:
firstName: first name
lastName: last name
uid: randomid
createdOn: 2021-09-20TO7:39:33.000Z
questions Data:
This is a dropdown date: Fri Sep 04 2015 20:00:00 GMT+0000 (Coordinated Universal Time)
This is a text field: asd
Do you agree to terms?: true
How would you prefer to communicate with us about your claim(s) moving forward?: WhatsApp
How many vehicles have you purchased?: 3
This is multi line text: 123
This is number with controls: 3
address:
fullAddress: some full address
buildingNumber: 3
legalDocuments:
another one - PDF: some link
Output fields setup (needs more work obviously):
outputFields: p
{ key: 'claim__uid', label: 'Claim Id', type: 'string' },
{ key: 'claim__reference', label: 'Reference', type: 'string' },
{ key: 'claim__claimType__uid', label: 'Claim Type Id', type: 'string' },
{ key: 'claim__claimType__name', label: 'Claim Type Name', type: 'string' },
{
key: 'claim__claimType__description',
label: 'Claim Type Description',
type: 'string',
},
{ key: 'claim__flow__uid', label: 'Flow Id', type: 'string' },
{ key: 'claim__flow__name', label: 'Flow Name', type: 'string' },
{ key: 'claim__mainStage', label: 'Main Stage', type: 'string' },
{ key: 'claim__assignedTo', label: 'Assigned To', dict: true },
{ key: 'claim__questionsData', label: 'Claim data', dict: true },
{ key: 'claim__address', label: 'Claim Address', dict: true },
{
key: 'claim__legalDocuments',
label: 'Claim Legal Documents',
dict: true,
},
{
key: 'claim__correspondences',
label: 'Claim Correspondences',
dict: true,
},
{ key: 'claim__createdOn', label: 'Created On', type: 'datetime' },
{ key: 'client', label: 'Client', dict: true },
],
How I see the results in the next step:
Some examples for writing and showing this cleanly would really help. Thank you!