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

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Launch sometimes not working in model driven app.

(0) ShareShare
ReportReport
Posted on by
Hello Magicians,
 
This is my first post, so I want to say hello :).  I have problem with record editing from model driven app using PowerFx button. My code looks like (power fx, menu button):
 
With(
    {
        newRec: 
        Patch(
            'Entity',
            Defaults('Entity'),
            {
                Name: 'Just name'
            }
        )
    },
    Launch(<URL>,
        {
            appid: <APPID>,
            pagetype: "entityrecord",
            etn: Entity,
            id: newRec.'Entity'
        },
        LaunchTarget.New
    )
)    
 
The problem is that sometimes record is not being opened for editing. Record is always created, but i need to switch to form editor to edit the record. It seems that Launch command is working randomly. There are also no errors in debug console in the browse. What I already have tried is add some parameters to url like 
  • forceUciNavigation=1
  • “ts=" & Text( Now(), “yyyymmddhhmmssfff" )
but none of them work.
 
When I paste complete URL, it always works. Tested with Edge and Chrome. Does anyone have the same problem?
 
Cheers
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    6 on at
    Root Cause
    Model-driven app ribbon Power Fx runs in client context.
    • Patch():
    • Is async
    • Returns record
    • But UI indexing may lag milliseconds
    Launch():
    Tries to open form immediately
    There is no guaranteed transaction synchronization between:
    • Record creation
    • UI navigation availability
    Correct & Reliable Solutions

    Instead of Launch(), use Xrm.Navigation.openForm()

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 81 Super User 2026 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 56 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 55 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans