@WarrenBelz , thank you for your support and your patience.
I am trying to test out the feature of Power App V2 - input as file content. My end goal is to create PDF file from SharePoint form and save it back to the SharePoint library. Please see picture below. But, I am keep getting missing column error with the contentBytes. In fact, contentBytes already exists clearly.
Therefore, I am trying to test out the feature by uploading an image. Response to your question, the error appears before I run the flow. And, I have already uploaded the image.

flow design

Code to upload image flow - Power App V2 trigger:
{
"kind": "PowerAppV2",
"inputs": {
"schema": {
"type": "object",
"properties": {
"text": {
"title": "My Text",
"type": "string",
"x-ms-dynamically-added": true,
"description": "Please enter your input",
"x-ms-content-hint": "TEXT"
},
"boolean": {
"description": "Please select yes or no",
"title": "Yes/No",
"type": "boolean",
"x-ms-content-hint": "BOOLEAN",
"x-ms-dynamically-added": true
},
"file": {
"description": "Please select file or image",
"title": "File Content Test",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"contentBytes": {
"type": "string",
"format": "byte"
}
},
"x-ms-content-hint": "FILE",
"x-ms-dynamically-added": true
}
},
"required": [
"text",
"boolean",
"file"
]
}
},
"metadata": {
"operationMetadataId": "864569ae-bfac-47b8-9f37-1c9caf9771d5"
}
}
Code for compose
{
"inputs": "@triggerBody()['text']",
"metadata": {
"operationMetadataId": "2e554d26-bd20-4f5a-b531-cf438e49050e"
}
}
Code for compose1
{
"inputs": "@triggerBody()?['boolean']",
"metadata": {
"operationMetadataId": "521565c1-cd06-4c72-b6f9-7c1938722853"
}
}
Code for compose2
{
"inputs": "@triggerBody()?['file']",
"metadata": {
"operationMetadataId": "08fdd02f-e3ec-4692-bed8-4df972694d2e"
}
}
Code to my end goal: Create PDF file from SharePoint form and save it back to the SharePoint library.
SaveFile_To_SharePoint_2.Run(
"NewInspectionReport.pdf",
{
file: {
contentBytes: PDF(MainFormScreen),
name: "NewInspectionReport.pdf"
}
}
);
I am keep getting missing column error with the contentBytes. In fact, contentBytes already exists clearly.

Code for Power App V2
{
"kind": "PowerAppV2",
"inputs": {
"schema": {
"type": "object",
"properties": {
"text": {
"description": "Please enter your input",
"title": "File Name",
"type": "string",
"x-ms-content-hint": "TEXT",
"x-ms-dynamically-added": true
},
"file": {
"description": "Please select file or image",
"title": "File Content",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"contentBytes": {
"type": "string",
"format": "byte"
}
},
"x-ms-content-hint": "FILE",
"x-ms-dynamically-added": true
}
},
"required": [
"text",
"file"
]
}
}
}