Hi guys,
I'm currently working on a PowerApp connected to our Microsoft Dynamics CRM system. I want to create a note related to a lead.
These two entities are connected through the regarding field. The regarding field can connect lots of entities with a note. I want to connect it to a lead.
When I look at the table in the Power Apps Table function, I can't see what I need to write in there to really connect to the lead entity.
The regarding field is a polymorphic field and a lookup field in Dataverse.
What do I need to post in the Patch function so the regarding field gets assigned properly?
Below is my current function:
Patch(
Notes,
Defaults(Notes),
{
Title: "Test Note",
Description: "This is created from a PowerAPP",
Regarding: {
'@odata.type': "#Microsoft.Dynamics.CRM.lead", // Typ der Entität
id: GUID("d5182447-4d6c-ef11-a670-0022487eddc5") // ID des Leads
},
isdocument: false // Setze den Wert für das isdocument-Feld
}
)
With this function I don't get any errors, but when I look at the record in the table, the regarding is empty