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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Model Driven: How to c...
Power Apps
Answered

Model Driven: How to call isntant flow with Javascript?

(1) ShareShare
ReportReport
Posted on by 264

Hi guys!

I need to clone record (Main Form) then get the result (new id)  and open new record Main Form.

If use PowerFx - it's impossible to open the new record form.

 

If use JS - can open the form, but how to call instant flow?

Of course I think it is possible to use httprequest and address like "https://prod-98.....logic.azure.com:443/workflows/..0939.."

but it is not a good solution, it must be changed for every client (deployment).

 

I have the same question (0)
  • Verified answer
    365-Assist Profile Picture
    2,327 Moderator on at

    You will need to create a JavaScript for the button. I have created a video that explains.

    https://youtu.be/XF_M4Jqox5Q

    ---------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Max77 

    The only option you have here is the way you have described it using http flow another alternative would be to clone the record using JavaScript and webapi directly without the need for the flow.

     

  • Fubar Profile Picture
    Super User 2026 Season 1 on at

    For a HTTP Flow put the URL in a configuration table, and read the URL from there - you then only have to update the config and not your code for different environments.

     

    Also, if all you are doing is copying values on the main record (not also cloning child records) then you could call an Action from your JS instead. If also cloning child records, then could also do an Action but one with custom .NET code registered against it.

  • Max77 Profile Picture
    264 on at

    @Fubar , @365-Assist  thank you very much. I use the way you offered.

    I have some doubt about security.

    So I use query to configuration table and get the direct url to http service. In this case a skilled user can debug the WebPage and get the url.

    Is it the corect way if I insert record in another service table with WebAPI then automated flow get the service record, copy my original record, say OK in the service record. Then when it is done (check on timer) I show my new Record in Main Form?

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard