hello
I am somewhat new to power apps, but not to 365.
I am trying to create an application with which I can take a photo of a ticket and that this photo is stored in a library and its table in a sharepoint list.
To achieve this I see two options.
1 option. this option follow this thread
https://www.c-sharpcorner.com/article/receipt-processing-using-ai-builder-in-power-apps/
I have a problem in Step 4, when I want to enter the code in the "OnChange" section I get an error in each ";"
I don't understand why the code doesn't accept me.

I don't understand why this happens to me.
2 option. following a link from microsoft.
In this case I don't know how to create a button to save this information in my library and sharepoint list. I imagine that with some flow and capturing the information, but I can't continue with this option either.

I would greatly appreciate the help.
I intend to save the image in this library with these extra columns and the table in a list (creating one record per line of the table).
library structure

list structure
