I am trying to add a functionality to my app that will send an email from Dyn365 using Power Apps. Right now, my app creates the email record in Dyn365 to which I assign the owner and the regarding value. I use Patch function to achieve this.
My problems are:
1. I don't seem to be able to add the Sender and Recipient values. In the UI these are LookUp records, while in Power Apps, in the 'Emails' dataset, both the "From" and "To Recipients" are of type String and Patching these Strings does not populate anything. I would expect to be able to pass the record (or GUID and type), but, like I said, both fields show String data type.
2. Even if i manage to populate these two fields, how do I send this email with Power Apps?
3. I am able to Patch the email template GUID to my email record, but the email body stays unchanged (as it there was no template). I tried adding _templateid_type:"templates" to my Patch function, but when I do, the server responds that the type is generated by the server. How can I use a template in my email with Power Apps.