
Hi,
I am trying to patch a new record of a custom entity "new_orderline". In this entity only 3 fields are required:
- "new_orderid" (lookup to salesorder-entity);
- "new_naam" (primary field);
- "new_gewenstelevertijd" (optionset)
The formula I use is:
Patch(
Orderlines;
Defaults([@Orderlines]);
{
new_orderid: LookUp(
Orders;
Order = GUID("E375617E-804B-45CB-AFB4-5A328B02C4AC")
);
new_gewenstelevertijd: 'Gewenste levertijd'.'Normaal (3 weken)';
new_naam: "test2"
}
)
When working from the create.powerapps.com side I can patch the record. But when publishing it. Calling this canvas app in Dynamics, the patch formula don't work.
I've tried an other custom entity that works, but this entity does not work.
Can someone help me out?
Thanks in advance!
Sebastiaan