Hi all, I am trying to clone an received email.
I can get the record created with the Subject and body and by default it creates an outgoing email, so I'm trying to update the status but it's not working with what I have below. I can run a real time workflow on create to set the correct status' and that works but I feel it must be possible with Power FX or is it not possible?
Thanks in advance for any help.
Paul
Patch('Email Messages', Defaults('Email Messages'), {Subject: Self.Selected.Item.Subject & " - Clone -", Description: Self.Selected.Item.Description, Direction: Self.Selected.Item.Direction = 'Direction (Email Messages)'.Incoming, statecode : 'Activity Status (Email Messages)'.Completed, statuscode : 'Status Reason (Email Messages)'.Received});
EDIT: think the above might be an older way of referencing status', I've also tried it like this:
Patch('Email Messages', Defaults('Email Messages'), {Subject: Self.Selected.Item.Subject & " - Clone -", Description: Self.Selected.Item.Description, 'Activity Status': 'Activity Status (Email Messages)'.Completed, 'Status Reason': 'Status Reason (Email Messages)'.Received});