Hi,
I am trying to send email using 'Office365Outlook.ReplyToV3' I have passed in:
- Message ID
- To
- Subject
- Body
- Mailbox Address
My looks like below:
Office365Outlook.ReplyToV3(Last(Filter(MessagesTable,Ticket.'Messages ID'=CurrentMessage.'Messages ID')).'Message ID',
{To:MainTable.'Raised By'.'Primary Email',
Subject:Last(Filter(MessagesTable,Ticket.'Ticket ID'=CurrentMessage.'Ticket ID')).Subject,
Body:TextInputCanvas2.Value,
mailboxAddress:CurrentUser.'Primary Email'});
When I use this, sends the email no problem, however when I then go to patch the sent message to a Dataverse table I then get the error...

When I go into Dataverse table this record and all the fields have been filled out correctly however when I go into the button there is error lines over the 'Office365Outlook.ReplyToV3'.
The email does not get sent, but the data appears inside Dataverse, also in the code the patch is after sending the email.
Can anyone shed some light on why this code would work on it's own but doesn't when adding the patch function after inside the on select inside a button
Thanks