Hi all, I have a button on the command bar to create a copy of an email record but am having trouble setting the polymorphic lookups.
The From/Sender will always be a Contact and the ToRecipients will always be a Team, Owner will also be a Team so I thought that I'd just be able to cast the type but I can't seem to get it to work.
Any help much appreciated.
Navigate(
Patch(
'Email Messages',
Defaults('Email Messages'),
{
Subject: "[Copied Email] " & Self.Selected.Item.Subject,
Description: Self.Selected.Item.Description,
Sender: AsType(Self.Selected.Item.Sender, Contacts)
}
)
);
Thanks in advance
Paul