Where to find the model identifier in Form Recognizer? - azure

I have trained a custom form identifier using Form Recognizer Studio:
The model is trained and it seems to be working well.
Now, I want to use this model using Power Automate, but I need the model identifier, but Where Can I Find It?
I have searched it everywhere in Azure, but no luck:

In the Studio you can find the models IDs within the projects in the Model tab. Please note though that the Form Recognizer Power Automate connector does not yet support the new preview release and supports only the 2.1 GA API. In order to use it you need to train the model in the 2.1 release and use https://fott-2-1.azurewebsites.net/. In 2.1 you will also find the model ID in the UX.
If you want to use the new Studio and preview API in power automate you can create a custom connector and call the REST API directly using the AnalyzeDocument API https://westus.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v3-0-preview-1/operations/AnalyzeDocument
In this case you will need to provide the model name which is the unique model name you gave the model when training it.

Better late than never, at this point with the model ID not available, consider using HTTP in your logic app, instead of Form Recognizer Logic App. Ways to make it better would be to keep the model ID as a variable and have a delay between REQUEST and GET

Related

Models registered in workspace do not show up in Designer (preview)

I registered a model in my AML workspace, and I can see it in the Model List:
Model List view
But I cannot see it in Designer (preview), which prevents me from using the new model there.
Designer view
Looks like a bug to me. Datasets work fine.
This is known issue as the models registered in workspace cannot be consumed in Designer without the new custom module capability (in private preview) available.
The models showing up in Designer today are these generated from Designer training -> inference pipeline conversion and can only be used in Designer (not registered in the workspace).
We have an effort ongoing to reduce the confusion.
Thanks for your feedback.
This is Blanca, working on AML Designer.
We're working on aligning models concept to reduce the confusion.
Shall we set up a meeting for us to understand your scenario to use registered model in Designer?
Your inputs will greatly help us to better design the user experience.
Could you please contact keli19#microsoft.com?
Thanks a lot for your help in advance!

how to compare datamodel Dynamics CRM in DTAP

we are currently using the DTAP (Development, Testing, Acceptance and Production) model in our Dynamics CRM 2011 environment. In the ideal situation we use solutions to be installed on each environment, however it occurs that manual adaptions are also performed.
To guard the data model, I want to create a "base line" data model which we can use to validate against after each deployment. There are managed 3rd party solutions and unmanned solutions in the system.
I have already used the solution packager from the CRM SDK to extract the solutions and then compare the content using WinMerge/Windiff (plain xml compare). I also used http://crmcustomcompare.codeplex.com, but this is not satisfying and using the metadata browser is very work intensive.
I wonder if there are other ways to guard the data model in the DTAP street of CRM.
If all you care about are the entities and attributes, the early bound generator combined with a diff tool does a great job of showing where things have changed.

VS 2012 EF 5 using .net 4 and database first Layered applications concepts

I upgraded from VS2005 to VS2012 specifically to code in .Net 4,.Net 4.5, and use EF5. I am new to EF. I have Julie's EF book but it talks mainly about EF4 and POCO and it has me confused trying to implement EF5.
My hosting only allows me to run .Net 4 currently. I am trying to use EF5 on a new database.
I tried Code first to generate my database but I could not get it to generate the database. So I created the database first and then generated the model from the database with EF5. What I want is a layered website using ASP.NET Forms, Data Access Layer, and a Business Layer. The business layer I intend to build so I can use ObjectDataSource to pull in to the webpage along with some web services to use cascading dropdowns.
I have my NameX.edm model created but the tt files don't have the same names, they have Model1.tt and Model1.Context.tt is not the same name, why. Also Model1.Context.tt is empty. I am attempting to create the POCO classes running the EF5 DbContext but I am having trouble getting it to see the edm model. I read somewhere that EF5 creates the POCO automatically. I am not seeing the big picture here. Is my issue that I am not using .Net4.5?
What I have is a ASP.NET Application project, a EF Project, a POCO Project, and intend to have a forth project with the Business logic. How do I get the EF generated correctly and the POCO classes? I want a layered application for to scale well. Next question How to get the POCO classes to talk with the Business logic? My database is SQL. I am use to writing stored proceedures to accomplish everything through business logic.
If you are using Model First technique, make sure that you have references to System.Data.Entity and System.Data.Entity.Design. Also, you will need to create a reference to the EntityFramework.dll as well. It is located by default in c:\Program Files\Microsoft ADO.NET Entity Framework Feature CTP5\Binaries\EntityFramework.dll. If you can not find it, make sure you have installed the Entity Framework through your Package Manager Console. To do this, open up Tools, Library Package Manager, Package Manager Console, then type Install-Package EntityFrameWork.
Next you want to add a new item to your project. Right click on your solution, go to Add, then select New Item. You want to select Data from the Common Items section on the left, then select ADO.NET Entity Data Model.
Next Select Generate From Database. In the next screen, if you have not set up your connection to the server, click New Connection..., otherwise select your database from the drop down box. You need to select whether or not you want to include your connection string information in your config file. This is up to you how secure you need your application to be. If you choose not to, you need to pass this information as parameters in code. Also at the bottom, you will most likely want to change the auto-generated entities name to something easier for you to use. This name will be the name of your DBContext Class!
Next you want to select the tables you would like EF to create POCO's for. If you want all the tables just tick the tables items. Same goes for views and stored procs.
Once you click finish, then you should see all your fancy POCOS laid out in front of you in Design Mode. Note If you do not have primary keys in place for all your tables, I suggest you fix that! VS will spit at you if you do not have Primary Keys set, or if your naming conventions in your tables prevent VS from creating them for you implicitly.
This is a quick little tutorial on getting you up and running. You can now persist and pull data from your POCOS by using your DBContext object. For example if you named your DBContext class *Gary_Bettman_Sucks*, and you wanted to create a new record from your table called NHL you would do the following:
Dim context as New Gary_Bettman_Sucks
Dim PullMyGoalie as New NHL With {
.Goals = 0,
.Playoffs = False
}
context.Set(Of NHL).Add(PullMyGoalie)
context.SaveChanges()
I would Highly suggest you look into implementing the Repository Pattern with your design to encourage code re-use, and it will seriously make your life MUCH easier down the road.
Hope this helps!

CoreData question

I have created application with corde data model to populate my sqlite database with data. What I want to put this populated database to iphone application. In iphone application project I have added the sqlite database file that I had populated and have imported the mangedobjectmodel from my destktop application, but when I run the iphone application I get an error : reason = "The model used to open the store is incompatible with the one used to create the store";
Is it possible to use one managedobjectmodel in different applications, or I have to migrate the data from one managedobjectmodel to another.
Thank you for your help.
The exact model used to create the store must be available to the app. The model provides the only information that the Core Data stacks has to interpret the store as objects.
You must move the model from the MacOS app to the iOS app. If you need to change the model, you need to create a new version of the old model and then migrate the store from the old to the new.
This is actually easy to do. I quite often create models and pre-populated SQLite stores on my development Mac and then insert the results into an iOS app. Unless your making any changes as above, the process is seamless and no more difficult than importing the files into the project.

Subsonic Question, is it possible execute templates during runtime?

Before ask my question, i have to say that subsonic is wonderfull tool, i realy like it.
I have an application which is createg domain layer during the runtime itself. I mean It has got customizable entites and when the entity added or any entity schema changed my model layer compiled again in the runtime according to changed database.
I'm wondering that, is it possible to execute subsonic templates during the runtime or when the user changed enetity schema or add to new entity to the application can it automatically generate the model layer again ? or how to trigger the template during the runtime of Subsonic ?
Thank you
If you make some modifications to the templates you can use the TextTransform.exe command line tool to generate SubSonic classes as described in the following answer:
SubSonic ASP.NET MVC sample in Visual Web Developer Express
You could then automate the execution of the commandline when your user modifies the schema.

Resources