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