Hi @SapphireOdette ,
There are two questions about uploading attachments in your form, one is optional and the other is mandatory. You want to upload the attachments in these two questions to a new item you just created?
If so, I did a test for your reference.
In my scenario ‘Question’ is a required attachment question and ‘Document’ is an optional attachment question.

This is my complete flow screenshot:



Please note that because there are too many similar actions, do not select the dynamic content of the above action. Be sure to select the dynamic content of the corresponding action.

The code in the ‘Parse Json’ action:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
Best Regards,
Sunshine Gu