Hi guys! So I’m trying to get all the information from the left side out and map them, but I’m only getting one set of output from the list highlighted on the left side. How can I get all the names and details out?. For context, I’m trying to get details out of a pdf (so I used extract from pdf node) and there are a list of names and details in the pdf so I want to get them all out. Thank you.
The problem is that your schema is defining a string for each field as output. However, you want an array (multiple items), right?
You can use the following setup:
This schema will separate all the information. However, now we still have “1 item” as output which is completely normal. We now use the “Split Out” node to split them if we later want to process each item separately:
Now, you should have your desired format :).
If it helped, I would appreciate it if you could mark the question as solved.
Best of Luck!
Kevin
Let me try this out. Thank you so much!
Sorry I totally forgot to post the schema in text:
{
“$schema”: “http://json-schema.org/draft-07/schema#”,
“title”: “PatientVisitList”,
“type”: “array”,
“items”: {
“title”: “PatientVisit”,
“type”: “object”,
“properties”: {
“Name”: {
“type”: “string”
},
“MRN”: {
“type”: “string”
},
“Visit Date”: {
“type”: “string”,
“format”: “date”
},
“Visit Count”: {
“type”: “integer”
},
“Diagnosis”: {
“type”: “string”
},
“Doctor”: {
“type”: “string”
}
},
“required”: [
“Name”,
“MRN”,
“Visit Date”,
“Visit Count”,
“Diagnosis”,
“Doctor”
]
}
}
thank you very much.
Did it solve the issue? ![]()
Trying to paste the code in n8n but it’s not working so I’m trying to figure it out with picture you sent.
This one is with the split out node. (sorry I deleted the old flow so I just recreated it)
I just got it to work, thank you so much. I hope to learn more from you in the future ![]()
It was a pleasure to help :). I’m glad we found a solution. If you feel your question is fully resolved, would you mind marking it as ‘solved’?
Also if you need help in the future let me know!
Good luck on your journey!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.



