web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : jUTPWa9DnljgKz+P/uZR0W
Power Automate - AI Builder
Unanswered

Issue with Setting Dynamic Model ID in AI Builder (Extract information from documents)

Like (0) ShareShare
ReportReport
Posted on 5 Feb 2024 20:10:37 by 69

Hello Community,

I'm currently working on integrating an AI Builder model into my Power Automate flow and am attempting to utilize a dynamic model ID as outlined in the Use of Dynamic Model ID (Advanced) section of the Microsoft documentation (https://learn.microsoft.com/en-us/ai-builder/predict-action-pwr-automate#use-a-dynamic-model-id-advanced).

I've been following the instructions for extracting the model ID from the model's detail page URL on Power Apps, which typically looks like this: make.powerapps.com/environment/[environment id]/aibuilder/models/[model id]. I've extracted my environment ID and model ID and set them as strings in my flow configuration.

However, I'm encountering an issue where the flow does not seem to recognize or properly utilize the model ID I've specified. I've double-checked to ensure that the model ID corresponds exactly to the one in the URL (e.g., 'abc123def456'), but the issue persists.

LuisAznar_0-1706912485418.png

 

 

 

Any advice, insights, or suggestions would be greatly appreciated. If more details about my flow configuration are needed to provide assistance, I'm happy to provide them.

Thank you in advance for your help!

Categories:
  • LuisAznar Profile Picture
    69 on 06 Feb 2024 at 14:46:12
    Re: Issue with Setting Dynamic Model ID in AI Builder (Extract information from documents)

    I tried different things in order to try to set a dynamic model id, I followed your steps, in model id initialize variable I set model id in the Name input, then String in Type, then in value I set the model ID value that I got from AI Hub, but is not working. Any hint of what am I doing wrong?

    LuisAznar_1-1707230724337.png

     

     

  • plarrue Profile Picture
    Moderator on 05 Feb 2024 at 22:19:39
    Re: Issue with Setting Dynamic Model ID in AI Builder (Extract information from documents)

    In this documentation step we are showing how to retrieve your model ID from the url.

    1. Enter model id in the Name input, String in the Type input, and the actual model ID in the Value input.

      The model ID can be found in the URL of the model's detail page in Power Apps: make.powerapps.com/environment/[environment id]/aibuilder/models/[model id]

    Can you try by adding your model ID in Value and not the url?

  • LuisAznar Profile Picture
    69 on 05 Feb 2024 at 21:53:30
    Re: Issue with Setting Dynamic Model ID in AI Builder (Extract information from documents)

    Is not exactly "Predict", I'm trying to use the action "Extract information from documents" using dynamic model ID that belongs to AI Builder connector. But is now working if I'm trying to replace environemt id and model id as it shows in Documentation. May you know why is ocurring this error

    LuisAznar_2-1707170004765.png

     

     

    LuisAznar_0-1707169850160.png

     

  • plarrue Profile Picture
    Moderator on 05 Feb 2024 at 21:30:03
    Re: Issue with Setting Dynamic Model ID in AI Builder (Extract information from documents)

    thanks, so you want to use the predict action in your cloud flow for your custom AI Builder Document Processing model ?

    Use predict action in Power Automate - AI Builder | Microsoft Learn

    plarrue_0-1707168580976.png

     




  • LuisAznar Profile Picture
    69 on 05 Feb 2024 at 20:57:48
    Re: Issue with Setting Dynamic Model ID in AI Builder (Extract information from documents)

    Hello @plarrue ,
    Yes I have a Cloud flow that is currently using AI Builder for Extract Information from documents and I trained a Custom Model for specific invoice structure, that's why I need to dynamically indicate what is the AI Model that flow will use in order to extract right information depending on the Invoice Carrier.

    PS: Here's the documentation that I'm trying to follow but I cannot assign a string in AI Model parameter. Any idea of what am I doing wrong?

    LuisAznar_0-1707166655384.png

     


    https://learn.microsoft.com/en-us/ai-builder/predict-action-pwr-automate#use-a-dynamic-model-id-advanced

  • plarrue Profile Picture
    Moderator on 05 Feb 2024 at 20:52:00
    Re: Issue with Setting Dynamic Model ID in AI Builder (Extract information from documents)

    Hi @LuisAznar ,

     

    Could you please share the Microsoft documentation link of this ?
    I've been following the instructions for extracting the model ID from the model's detail page URL on Power Apps, which typically looks like this: make.powerapps.com/environment/[environment id]/aibuilder/models/[model id]. I've extracted my environment ID and model ID and set them as strings in my flow configuration.

     

    Did you build a document processing model and want to use it in a flow ?

     

    thanks,

    Regards

    Philippe

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete