I created an app to take a picture and import it on product in Fin&Ops.
But I have an error when I want to create the product document attachment as an image. (If I create a note with text, it works).
Here is my error message: "An error has occurred. Write failed for table row of type 'EcoResProductDocumentAttachmentEntity'. Infolog: Error: Error executing code: Binary (object), method constructFromContainer called with invalid parameters..
Here is the last step of the power automate:
Image from the Canvas app:
The Input used for the 'Create a record' step seems ok:
So, the item/attachment seems right...
Do you have ideas?
If anyone can help?
I make a Parse, then I initialize a variable and the value of variable is:
I have to make a convertion ton only keep the iVBORw0KGgoAAAANSUxxxxxxx but I don't find the good function to do this.
If anyone can help?
1) When you try with a few test images like 3 to 5 of them, and you get the base64, which exactly would be the parts of the base64 you want to keep?
2) Also is it with this phrase below as well included in the beginning of the string to extract, or is it without it and starting directly with the iVBORw0KG...... part?
Please check on the above and let us know your results, then we might attempt to advise you of a function or way to keep the base64 in that particular pattern or way.
I only take one picture with the app, with the camera of laptop or smartphone: so I never take several pics at the same time before using my power automate flow.
The only thing I need to put on the field 'Attachment' in the step 'Create a record', is the value of "iVBORw0KGgoAAAANSUxxxxxxx".
If I put this chain iVBORw0KGgoAAAANSUxxxxxxx manually, the picture is well uploaded in Fin&Ops, so I need to extract only this part. I hope I was clear 🙂
You can use the split function then get index 1, like this:
Check out this example:
Exhibit 1: Definition of the Flow - example
Exhibit 2: Test running the Flow and inspecting the outputs:
Check out our new profile badges recognizing authored solutions!
We are excited to announce the Power Apps Super Users!
Did you miss the call? Check out the Power Apps Community Call here.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!