Forum Discussion
FormRecognizer - pre-built invoice model - Operation-Location value in a variable
Dear community,
Hope you can help me with an issue I've been struggling with:
I'm accessing the FormRecognizer service pre-built invoice model from PowerAutomate using HTTP POST and GET actions. The file input is PDF invoices. I run the POST call, copy and paste the Operation-Location value that is returned in the POST response into the URI field of the GET call, save, run my flow, all is well.
However, when instead of a literal copy/paste, I construct a text variable containing that very same Operation-Location string and provide that variable reference in the GET action URI field, the GET call still completes without error, but the GET response reports that the FormRecognizer service is either notStarted or running, and does not return any further output.
As soon as i revert the text variable in the GET action URI field back to the literal copy and paste Operation-Location string value, things start working normally again.
I need to construct this Operation-Location value dynamically as I understand the service Operation-Location URI links expire after a certain amount of time, and my service calls would not continue to run. Please advise?
1 Reply
- JoeF-MSFT
Microsoft
Thanks for posting this question. Since you are using Power Automate, have you considered leveraging AI Builder Invoice Processing ? It's built on top of Azure Form Recognizer, and since it's part of the Power Platform is really simple to use it in a flow in Power Automate.
If you still prefer using Azure Form Recognizer directly, this following video can help: How to Scan Receipts using Azure's Form Recognizer API - YouTube