A problem with a request to Webhook

Hello team, help me, please.

Describe the issue/error/question

I have a problem with a request with the node CODE to get informations about a JSON.

What is the error message (if any)?

ERROR: Code doesn’t return items properly

I need to take that part below the json and select the ID so that it comes out as an OUTPUT.

"id":
243646,
"nome":
"Operadora",
"tipo":
3,
"valores":
"["Bradesco","SulAm\u00e9rica","Central Nacional Unimed","Smile","Sa\u00fade Sim","Seguros Unimed","Amil","S1 Sa\u00fade","Slam","Quallity Pr\u00f3 Sa\u00fade","MedS\u00eanior","Ideal Sa\u00fade","Porto Seguro","Hapvida","NotreDame Interm\u00e9dica"]",
"valor":
"Central Nacional Unimed"
},,

And I need to get not only this ID, but other JSON fields as well as the field ID

{
"id":
183022,
"name":
"Administrator",
"type":
3,
"values":
"["Qualicorp","Grupo Elo","AllCare","Servix","Cont\u00e9m","Quallity","Not applicable","Platinum"]",
"value":
"Not applicable"
},

How can I do this?

Please share the workflow

Share the output returned by the last node

[

{

"headers":{

"host":"n8n-slave.referenciaseguros.com.br",

"user-agent":"GuzzleHttp/7",

"content-length":"20130",

"api-key":"^9SebyRg1kM*DjLDVM^%",

"content-type":"application/json",

"x-forwarded-for":"144.22.245.5",

"x-forwarded-host":"n8n-slave.referenciaseguros.com.br",

"x-forwarded-port":"443",

"x-forwarded-proto":"https",

"x-forwarded-server":"04f215109995",

"x-real-ip":"144.22.245.5",

"accept-encoding":"gzip"

},

"params":{

},

"query":{

},

"body":{

"id":24526071,

"title":"CS BV (PME) - AT SOLUCOES E TECNOLOGIA LTDA | 45823404000113",

"created_at":"2023-03-22 14:17:40",

"closed_at":null,

"probably_closed_at":"2023-03-20",

"last_contact":"2023-03-22 10:20:12",

"description":"17:16 03/02 | ExactSales : CONFIGR ADMINISTRACAO DE SISTEMAS S A",

"observation":null,

"status":0,

"deleted":0,

"freezed":0,

"frozen_at":null,

"value":"1572.56",

"value_mrr":"0.00",

"hash":"1xy5r65zpoys8kg0occ44g8k88sckwo",

"order":0,

"probability":null,

"updated_at":"2023-03-23 11:23:00",

"stage_changed_at":"2023-03-23 11:23:00",

"lead_time":1,

"temperature":null,

"lost_reason":{

"id":null,

"name":null,

"description":null

},

"company":{

"id":11599293,

"ie":null,

"name":"AT TECNOLOGIA",

"cnpj":"45.823.404/0001-13",

"hash":"k03a6s2dc8goos4o4kk440c4o8k0044",

"logo":null,

"open_at":"2022-03-29",

"country":"Brasil",

"website":null,

"district":"Vila Mariana",

"email_nf":null,

"created_at":"2023-02-03T20:16:39.000000Z",

"observation":"ExactSpotter ID #11548338: empresa recebida através da integração",

"company_name":"AT SOLUCOES E TECNOLOGIA LTDA",

"address_number":"2187",

"address_street":"Rua Santa Cruz",

"address_complement":"de 1801 ao fim - lado ímpar",

"address_postal_code":"04121002",

"address":{

"street":"Rua Santa Cruz",

"postal_code":"04121002",

"number":"2187",

"complement":"de 1801 ao fim - lado ímpar",

"district":"Vila Mariana"

},

"size":"EMPRESA DE PEQUENO PORTE",

"cnae":"64.62-0-00",

"facebook":null,

"linkedin":null,

"status_touch":null,

"company_situation":null,

"city":{

"id":3826,

"name":"São Paulo",

"uf":"SP"

},

"segment":{

"id":128553,

"name":"N/A",

"sector":null

},

"user":{

"id":null,

"name":null

},

"cnaes":[

{

"id":"641",

"code":"62.04-0-00",

"description":"Consultoria em tecnologia da informação"

}

],

"contact_emails":[

{

"id":22116458,

"address":"[email protected]"

}

],

"contact_phones":[

{

"id":32767091,

"number":"556193893993"

}

],

"fields":[

],

"forms":[

]

},

"person":{

"id":20178891,

"hash":"q3yxkxq578gk844gk8kg8g8oog8osg4",

"cpf":"404.952.288-85",

"name":"FELIPE ARENHARDT",

"job_title":"SOCIO",

"rdstation":"https://app.exactspotter.com/public/aWQ9MTE1NDgzMzgmZWNpZD0xMTMxNw2",

"birth_day":"1992-05-12",

"gender":"Masculino",

"website":null,

"facebook":null,

"linkedin":null,

"avatar":null,

"observation":"ExactSales ID #12112162: pessoa recebida através da integração",

"address":{

"street":"Rua Santa Cruz",

"postal_code":"04121002",

"number":"2187",

"complement":"de 1801 ao fim - lado ímpar",

"district":"Vila Mariana"

},

"city":{

"id":3826,

"uf":"SP",

"name":"São Paulo"

},

"company":{

"id":null,

"name":null

},

"contact_emails":[

{

"id":20979002,

"address":"[email protected]"

}

],

"contact_phones":[

{

"id":31317631,

"number":"5561991912591"

}

],

"fields":[

{

"id":187118,

"nome":"RG",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":369426,

"nome":"ID Seguros Unimed",

"tipo":14,

"valores":null,

"valor":null

}

]

},

"tags":[

],

"stage":{

"id":259496,

"name":"Onboarding concluído"

},

"pipeline":{

"id":40476,

"name":"CS - Boas vindas"

},

"origin":{

"id":458426,

"name":"Marcelo nova",

"origin":{

"id":5652,

"name":"Lista Amil"

}

},

"user":{

"id":49976,

"name":"Tasso Cézar de Carvalho da Cruz",

"avatar":"https://piperun.s3.sa-east-1.amazonaws.com/13209/files/pe0s4qci7y84soggwosggcw0os8ko4s."

},

"city":{

"id":3826,

"name":"São Paulo",

"uf":"SP"

},

"proposals":[

{

"id":1612168,

"hash":"2med627dr58gwks0wgsk0swcwwgk0c0",

"value":"1572.56",

"status":1,

"created_at":"2023-03-22T17:17:45.000000Z",

"valid_until":"2023-02-17",

"payment_method_mrr":null,

"value_mrr":"0.00",

"due_date_mrr":null,

"first_payment_mrr_date":null,

"user":{

"id":49976,

"name":"Tasso Cézar de Carvalho da Cruz"

},

"shippingCompany":[

],

"billingCompany":[

],

"triangularCompany":[

],

"brand":[

],

"items":[

{

"id":2375483,

"name":"Central Nacional Unimed Estilo Apartamento - Sem Coparticipação - Compulsório/Tabela SP (De 29 A 33 Anos - 2 A 29 Vidas)",

"reference":"RSPCNUEAC33KKK",

"code":"SPCNUEAC33KKK",

"category":{

"id":26086,

"category_id":null,

"name":"PME - Central Nacional Unimed",

"reference":null,

"description":"Criado via importação em 2022-01-07 19:24:25"

},

"characteristics":[

{

"id":775,

"name":"Tabela",

"options":[

]

}

],

"type":0,

"cost":null,

"markup_type":null,

"markup_value":null,

"value":458.64,

"ipi_tax":0,

"quantity":2,

"discount":0,

"commission_final_value":null,

"type_of_charge":null,

"charge_name":"Indefinido",

"duration":0,

"contract_start_at":null,

"contract_end_at":null,

"comissao":null,

"description":"",

"discount_type":0,

"fix_commission_value":null,

"commission_incidence_type":null,

"commission_incidence_name":"Indefinido"

},

{

"id":2375480,

"name":"Central Nacional Unimed Estilo Apartamento - Sem Coparticipação - Compulsório/Tabela SP (Até 18 Anos - 2 A 29 Vidas)",

"reference":"RSPCNUEAC18KKK",

"code":"SPCNUEAC18KKK",

"category":{

"id":26086,

"category_id":null,

"name":"PME - Central Nacional Unimed",

"reference":null,

"description":"Criado via importação em 2022-01-07 19:24:25"

},

"characteristics":[

{

"id":775,

"name":"Tabela",

"options":[

]

}

],

"type":0,

"cost":null,

"markup_type":null,

"markup_value":null,

"value":327.64,

"ipi_tax":0,

"quantity":2,

"discount":0,

"commission_final_value":null,

"type_of_charge":null,

"charge_name":"Indefinido",

"duration":0,

"contract_start_at":null,

"contract_end_at":null,

"comissao":null,

"description":"",

"discount_type":0,

"fix_commission_value":null,

"commission_incidence_type":null,

"commission_incidence_name":"Indefinido"

}

],

"parcels":[

],

"parcels_mrr":[

]

}

],

"activities":[

],

"files":[

{

"id":17554842,

"url":"account/13209/deals/24526071/files/h37143epzvkgos0csk0occ4ckk4s44g.pdf",

"name":"AT SOLUCOES.pdf",

"size":105869,

"hash":"h37143epzvkgos0csk0occ4ckk4s44g",

"format":"pdf",

"created_at":"2023-02-10T12:43:19.000000Z",

"description":null

},

{

"id":17554844,

"url":"account/13209/deals/24526071/files/l0db1jdrpaoc4cs4k44ww0ccoogccso.png",

"name":"CARTEIRINHA FELIPE",

"size":279849,

"hash":"l0db1jdrpaoc4cs4k44ww0ccoogccso",

"format":"png",

"created_at":"2023-02-10T12:43:20.000000Z",

"description":null

},

{

"id":17554845,

"url":"account/13209/deals/24526071/files/qb6zvfbricggcgo04cc4cwc0s4w8c4s.pdf",

"name":"JUNTA COMERCIAL",

"size":513550,

"hash":"qb6zvfbricggcgo04cc4cwc0s4w8c4s",

"format":"pdf",

"created_at":"2023-02-10T12:43:20.000000Z",

"description":null

},

{

"id":17554848,

"url":"account/13209/deals/24526071/files/i91um7js0zk0sc84soc0kkswwsg48c4.pdf",

"name":"CASAMENTO",

"size":1359320,

"hash":"i91um7js0zk0sc84soc0kkswwsg48c4",

"format":"pdf",

"created_at":"2023-02-10T12:43:20.000000Z",

"description":null

},

{

"id":17554849,

"url":"account/13209/deals/24526071/files/giu0htdguds8c8840gg8gsogk4ws4ww.png",

"name":"CARTEIRINHA LAIS",

"size":295673,

"hash":"giu0htdguds8c8840gg8gsogk4ws4ww",

"format":"png",

"created_at":"2023-02-10T12:43:20.000000Z",

"description":null

},

{

"id":17554852,

"url":"account/13209/deals/24526071/files/2gqv413s05mos8ggog4ck88cwocc4kc.png",

"name":"CARTEIRINHA NINA",

"size":290690,

"hash":"2gqv413s05mos8ggog4ck88cwocc4kc",

"format":"png",

"created_at":"2023-02-10T12:43:21.000000Z",

"description":null

},

{

"id":17554855,

"url":"account/13209/deals/24526071/files/t4yg5fo24w0wsogcs0co8008owg0ggc.pdf",

"name":"CERTIDAO LUNA",

"size":1354383,

"hash":"t4yg5fo24w0wsogcs0co8008owg0ggc",

"format":"pdf",

"created_at":"2023-02-10T12:43:21.000000Z",

"description":null

},

{

"id":17554857,

"url":"account/13209/deals/24526071/files/bajq47qzyzkksos4sgk4404ogc040sg.pdf",

"name":"CERTIDAO NINA",

"size":1849880,

"hash":"bajq47qzyzkksos4sgk4404ogc040sg",

"format":"pdf",

"created_at":"2023-02-10T12:43:23.000000Z",

"description":null

},

{

"id":17554859,

"url":"account/13209/deals/24526071/files/8foc8opv6mwws488cgoswo8cc4c0w8w.pdf",

"name":"DOC FELIPE",

"size":1073191,

"hash":"8foc8opv6mwws488cgoswo8cc4c0w8w",

"format":"pdf",

"created_at":"2023-02-10T12:43:24.000000Z",

"description":null

},

{

"id":17554860,

"url":"account/13209/deals/24526071/files/ehdoldj8psg804oowsogcc08ssk4coc.pdf",

"name":"DOC LAIS",

"size":1387769,

"hash":"ehdoldj8psg804oowsogcc08ssk4coc",

"format":"pdf",

"created_at":"2023-02-10T12:43:25.000000Z",

"description":null

},

{

"id":17554863,

"url":"account/13209/deals/24526071/files/7pvok4lg5z40kos04k8os008c804g48.pdf",

"name":"DOC NINA",

"size":671723,

"hash":"7pvok4lg5z40kos04k8os008c804g48",

"format":"pdf",

"created_at":"2023-02-10T12:43:26.000000Z",

"description":null

},

{

"id":17554865,

"url":"account/13209/deals/24526071/files/2ce2yceup3i80wo4kwo0wowco00c840.pdf",

"name":"PAGAMENTO",

"size":30694,

"hash":"2ce2yceup3i80wo4kwo0wowco00c840",

"format":"pdf",

"created_at":"2023-02-17T15:47:24.000000Z",

"description":null

},

{

"id":17554866,

"url":"account/13209/deals/24526071/files/7twurgeunjkskwww4owo04c4c4kwo44.pdf",

"name":"PERMANENCIA",

"size":65730,

"hash":"7twurgeunjkskwww4owo04c4c4kwo44",

"format":"pdf",

"created_at":"2023-02-17T15:47:31.000000Z",

"description":null

},

{

"id":17554869,

"url":"account/13209/deals/24526071/files/g3cwjuf9mggs4g8oskgoc8kk8kkcoks.pdf",

"name":"PRO2498_202302221724.pdf",

"size":null,

"hash":"g3cwjuf9mggs4g8oskgoc8kk8kkcoks",

"format":"pdf",

"created_at":"2023-02-22T08:24:34.000000Z",

"description":null

},

{

"id":17554870,

"url":"account/13209/deals/24526071/files/6j6fuxl45zoc0o8oog84cwowc8go08c.pdf",

"name":"BOLETO REFATURADO - CONFIGR ADMINISTRACAO DE SISTEMAS S A - 21.03.2023.pdf",

"size":66936,

"hash":"6j6fuxl45zoc0o8oog84cwowc8go08c",

"format":"pdf",

"created_at":"2023-03-20T17:48:05.000000Z",

"description":null

},

{

"id":17554872,

"url":"account/13209/deals/24526071/files/mutwfty86o04040wgo0ocgsw8s8484k.pdf",

"name":"1º BOLETO - AT SOLUCOES E TECNOLOGIA LTDA - 01.04.2023.pdf",

"size":55732,

"hash":"mutwfty86o04040wgo0ocgsw8s8484k",

"format":"pdf",

"created_at":"2023-03-22T13:19:12.000000Z",

"description":null

},

{

"id":17554874,

"url":"account/13209/deals/24526071/files/3x0oy7xu5pq880g4w0ww4gccg0oswkw.jfif",

"name":"COMP. DE PAGAMENTO - AT SOLUCOES E TECNOLOGIA LTDA - 22.03.2023.jfif",

"size":63509,

"hash":"3x0oy7xu5pq880g4w0ww4gccg0oswkw",

"format":"jfif",

"created_at":"2023-03-22T17:17:35.000000Z",

"description":null

}

],

"fields":[

{

"id":169979,

"nome":"CERTIDÃO DE NASCIMENTO",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":170448,

"nome":"BRADESCO - Mestra (contrato)",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":170450,

"nome":"Declaração de saúde (Amil)",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":225565,

"nome":"Declaração de regularidade (MEI, Eireli, Sociedade unipessoal, ME)",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":233285,

"nome":"Arquivos referente ao Aproveitamento de Carência ou Cancelamento",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":257693,

"nome":"Foto (Smile - Frente e de Perfil) - (MedSenior - Selfie)",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":257723,

"nome":"Documentos de elegibilidade",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":343939,

"nome":"Anexos Complementares (DS Complementar Pediátrica ou Idoso) (Se criança de 3 anos, cartão de Vacina, sumário de alta e teste do pezinho)",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":392743,

"nome":"Ad name",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":401142,

"nome":"Pré-vendedor",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":403995,

"nome":"Foto de Perfil",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":417445,

"nome":"O Colaborador já tem posição? (se sim, fornecer o local)",

"tipo":1,

"valores":null,

"valor":null

}

],

"forms":[

{

"id":13463,

"name":"Administrativo",

"type":1,

"title":null,

"content":null,

"background":"#ececfc",

"text_color":"#333333",

"fields":[

{

"id":174193,

"nome":"Códigos plataformas",

"tipo":3,

"valores":"["1","2","3","4","5","100","6","7","8","9","101","102","10","11","12","13","14","15","16"]",

"valor":"11"

},

{

"id":180741,

"nome":"Comprovante de implantação",

"tipo":15,

"valores":null,

"valor":"[{"id":17554833}]"

},

{

"id":185093,

"nome":"Vigência",

"tipo":10,

"valores":"null",

"valor":"2023-03-20"

},

{

"id":189201,

"nome":"Número do processo",

"tipo":1,

"valores":null,

"valor":"1446"

},

{

"id":189390,

"nome":"Tipo de contratação",

"tipo":3,

"valores":"["PME","Ades\u00e3o","Individual","Pet","Responsabilidade Civil","Vida","Empresarial - Porte 2 e 3","Uno Telemedicina","Dental PME","Dental Individual","PME - Porte 2"]",

"valor":"PME"

},

{

"id":197024,

"nome":"Closer",

"tipo":3,

"valores":"["Alexandre Silva Gondin","Daniel Ferreira Gorski","Tasso C\u00e9zar de Carvalho da Cruz","Amanda Teixeira Cohen","Amanda Oliveira da Cunha Santos","Marcelo Yuri de Carvalho da Cruz","Felipe Lima Sousa Ferreira de Alc\u00e2ntara","Bruna Reis de Avila","Marcos Felipe Silva Oliveira","Milton Lucas Laviola de Carvalho","Larissa Batista Barros Cavalcanti","Rafael Henrique de Almeida Pereira","Karinny Alves Cavalcante Rodrigues","Frank Wilhams dos Santos Teixeira","Caio de Jesus Guedes","Roney Emanuel Graca Campos","Wagner Atanasio Santos","Daril Placido do Camilo Junior","Henrique Costa Mendes","Gabriel de Carvalho Lindolfo","Cassio Cesar Santos de Menezes","Matheus Machado Ferreira","Paulo Henrique Gomes Farias","J\u00e9ssica Soares Silva","Joany Marcelo Arantes Filho","Gizelly Fogaca dos Santos","Allan Alves de Lima","Luan Ara\u00fajo Teles","Lucas Diniz Teles","Mayara Soares Braga","Suyanne Sofia","Yan Lins","Ana K\u00e9sia","Suyanne Sofia Oliveira","Viviane Lima","Plataforma Vida","Fernanda Caitano","Ana K\u00e9sia Silva Nascimento","Marcelo Luis Ara\u00fajo da Cruz","Sergio Henrique Carvalho Raye de Aguiar","Alessandro Vieira Alvarenga da Costa","Brenda Evelyn Santos Barbosa","Jhonatas Silva da Trindade","Patr\u00edcia de Moraes Sobreiro da Silva","Daniela dos Santos","Kaique Lima Scariot","#024 Douglas Cordeiro do Nascimento","#005 Thays Cristina","#029 Yara Lorrany","#023 Augusto C\u00e9sar","Pedro Paulo de Oliveira Marinho","#036 Ana Guilhermina Pereira de Mello","Keila da Silva Lima","#034 - VIT\u00d3RIA MIRANDA","Helen Vit\u00f3ria Alves Loiola","Adriano Bazzo","Rodrigo Pereira Goncalves","Gabriel Miranda Rodrigues","Washigton Luis Santos Junior","Mickael Wallace Lima de Campos","Joao Victor Ferreira Melo","Diego Botelho Marques","Diogo Botelho Marques"]",

"valor":"Tasso Cézar de Carvalho da Cruz"

},

{

"id":231920,

"nome":"Equipe que produziu",

"tipo":3,

"valores":"["Vendedor interno","Vendedor assessorado"]",

"valor":"Vendedor interno"

},

{

"id":243646,

"nome":"Operadora",

"tipo":3,

"valores":"["Bradesco","SulAm\u00e9rica","Central Nacional Unimed","Smile","Sa\u00fade Sim","Seguros Unimed","Amil","S1 Sa\u00fade","Slam","Quallity Pr\u00f3 Sa\u00fade","MedS\u00eanior","Ideal Sa\u00fade","Porto Seguro","Hapvida","NotreDame Interm\u00e9dica"]",

"valor":"Central Nacional Unimed"

},

{

"id":183022,

"nome":"Administradora",

"tipo":3,

"valores":"["Qualicorp","Grupo Elo","AllCare","Servix","Cont\u00e9m","Quallity","N\u00e3o se aplica","Platinum"]",

"valor":"Não se aplica"

},

{

"id":244459,

"nome":"Data de ganho (MESMA DO COMPROVANTE)",

"tipo":10,

"valores":null,

"valor":"2023-03-22"

},

{

"id":252688,

"nome":"Antigo nome no funil de closer",

"tipo":1,

"valores":null,

"valor":null

}

]

},

{

"id":14265,

"name":"Movimentação Cadastral",

"type":1,

"title":null,

"content":null,

"background":"#ececfc",

"text_color":"#333333",

"fields":[

{

"id":181647,

"nome":"Tipo de Movimentação",

"tipo":3,

"valores":"["Inclus\u00e3o de Titular","Inclus\u00e3o de Dependente","Exclus\u00e3o de Titular","Exclus\u00e3o de Dependente","Cancelamento do Contrato"]",

"valor":null

},

{

"id":181648,

"nome":"Data de Início da Movimentação",

"tipo":10,

"valores":null,

"valor":null

},

{

"id":181649,

"nome":"Nome dos Beneficiários Vinculados a Movimentação",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":181650,

"nome":"Parentesco / Vínculo",

"tipo":3,

"valores":"["Pai ou M\u00e3e","Esposa ou Esposo","Filho ou Filha","Sobrinho ou Sobrinha","Primo ou Prima","Neto ou Neta"]",

"valor":null

},

{

"id":181651,

"nome":"Arquivos relacionados ao processo",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":181652,

"nome":"Protocolo do Processo",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":181653,

"nome":"Data de Conclusão",

"tipo":10,

"valores":null,

"valor":null

},

{

"id":181654,

"nome":"Status do Processo",

"tipo":3,

"valores":"["Em Andamento","Aguardando resposta do Cliente","Aguardando Aprova\u00e7\u00e3o","Conclu\u00eddo"]",

"valor":null

}

]

},

{

"id":14266,

"name":"Solicitação de Reembolso",

"type":1,

"title":null,

"content":null,

"background":"#ececfc",

"text_color":"#333333",

"fields":[

{

"id":181655,

"nome":"Tipo de Reembolso",

"tipo":3,

"valores":"["Reembolso para Consultas","Reembolso para Exames","Reembolso para Cirurgia","Reembolso de Outros Procedimentos"]",

"valor":null

},

{

"id":181656,

"nome":"Data de Solicitação",

"tipo":10,

"valores":null,

"valor":null

},

{

"id":181659,

"nome":"Cliente é:",

"tipo":3,

"valores":"["Titular","Dependente"]",

"valor":null

},

{

"id":181649,

"nome":"Nome dos Beneficiários Vinculados a Movimentação",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":181654,

"nome":"Status do Processo",

"tipo":3,

"valores":"["Em Andamento","Aguardando resposta do Cliente","Aguardando Aprova\u00e7\u00e3o","Conclu\u00eddo"]",

"valor":null

},

{

"id":181652,

"nome":"Protocolo do Processo",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":181651,

"nome":"Arquivos relacionados ao processo",

"tipo":15,

"valores":null,

"valor":null

},

{

"id":181660,

"nome":"Data de Pagamento do Reembolso",

"tipo":10,

"valores":null,

"valor":null

}

]

},

{

"id":16265,

"name":"Titular e dependente",

"type":1,

"title":null,

"content":null,

"background":"#ececfc",

"text_color":"#333333",

"fields":[

{

"id":180663,

"nome":"Quantidade de titulares",

"tipo":14,

"valores":null,

"valor":"1"

},

{

"id":180664,

"nome":"Quantidade de dependentes",

"tipo":14,

"valores":null,

"valor":"3"

},

{

"id":199970,

"nome":"Descrição titular e depedente",

"tipo":5,

"valores":null,

"valor":"Nome: FELIPE ARENHARDT TOMAZ CPF: 404.952.288-85 E-mail: [email protected] Telefone: (61) 9191-2591 Caracteristica: Depedente do Titular 1 Vínculo: Cônjuge Nome: LAIS Caracteristica: Depedente do Titular 2 Vínculo: FILHO Nome: nina Caracteristica: Depedente do Titular 3 Vínculo: FILHO Nome: lula"

},

{

"id":199974,

"nome":"Dados responsável LEGAL pela empresa (PME) ou contrato (Individual/Adesão)",

"tipo":5,

"valores":null,

"valor":"Nome: FELIPE ARENHARDT TOMAZ CPF: 404.952.288-85 E-mail: [email protected] Telefone: (61) 9191-2591"

},

{

"id":221274,

"nome":"Qual a idade do tomador de descisão?",

"tipo":3,

"valores":"["18 a 24 anos","25 a 31 anos","32 a 38 anos","39 a 45 anos","46 a 52 anos","53 a 59 anos","60 a 66 anos","Acima de 66 anos"]",

"valor":"32 a 38 anos"

}

]

},

{

"id":19029,

"name":"CS",

"type":1,

"title":null,

"content":null,

"background":"#ececfc",

"text_color":"#333333",

"fields":[

{

"id":228813,

"nome":"Tipo de login",

"tipo":3,

"valores":"["Empresa","Benefici\u00e1rio","Empresa(s) \/ Benefici\u00e1rio(s)"]",

"valor":null

},

{

"id":228811,

"nome":"Login",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":228812,

"nome":"Senha",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":406293,

"nome":"NPS Atendimento do Closer",

"tipo":6,

"valores":"["0","1","2","3","4","5","6","7","8","9","10"]",

"valor":null

},

{

"id":406295,

"nome":"NPS Atendimento do Closer - Motivo da Nota",

"tipo":1,

"valores":null,

"valor":null

},

{

"id":420518,

"nome":"Método de Envio do Boleto escolhido pelo cliente",

"tipo":3,

"valores":"["E-mail","WhatsApp","WhatsApp e e-mail"]",

"valor":null

},

{

"id":420520,

"nome":"Data de Vencimento do Cliente",

"tipo":3,

"valores":"["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"]",

"valor":null

}

]

}

],

"action":{

"create":"2023-03-23T14:23:01.089954Z",

"pipeline":"CS - Boas vindas",

"stage":"Onboarding concluído",

"trigger_type":"Uma oportunidade entrar na etapa selecionada",

"user":"Tasso Cézar de Carvalho da Cruz"

}

}

}

]

Hey @TASSO_CRUZ,

Welcome to the community :raised_hands:

I have fixed the formatting for you so this is now easier to read but after looking at it I am not sure what the error is or what you are trying to do. What are you trying to do with the code node at the moment it just contains $('Webhook') which on it’s own will cause an error, Did you check the example that gets loaded into the node to start with?

If what you are after is just the body of the webhook node so you can work with it you could try using something like return $input.first().json.body; and seeing if that works for you. From there you can use the Item Lists node if you need to extract the forms.

Jon, that option you showed me, I used it, but I need to get information about the body. Example:
return $input.first().json.body.fields.forms.id.value

and even, I would need to access a specific fields and forms that I thought of using as follows: $input.first().json.body.fields[6].forms[5].id.value

but the problem is that if in my system I change the sequence for some reason to maintain the sequence of fields, forms or id/value, I will automatically have a bug and as this is a request that I use a lot in my systems on n8n , would lead to A LOT of bugs.

Please, can someone help me

Hey @TASSO_CRUZ,

I am not sure what the issue is here, getting the body is always going to be the same so the only issue will be working with the data you have and how to do that would depend on what data you have.

Do you maybe have a clearer example? The solution I shared before will normally work and if you are after a specific field name you would build out your workflow to filter for it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.