First of all, thanks for all your replies. Unfortunately though, for me changing what I had
Patch(CommentDataTable1,
Defaults(CommentDataTable1),
{Submitter: fetchFullName.Text, Comment: tb_Comment.Text, DocID: Identitfier_DataCard1.Default, DocOwner: Owner_DataCard1.Default}
)
to
Patch(CommentDataTable1,
Defaults(CommentDataTable1),
{Submitter: fetchFullName.Text, Comment: tb_Comment.Text, DocID: Identitfier_DataCard1.Default, DocOwner: Owner_DataCard1.Selected}
)
does not solve the problem.
What I'm trying to do is to enable people to log a comment on a certain document on our sharepoint and write these comments to an Excel file. Therefore I made a connection to this sharepoint list and I pull the fields; Identifier and Owner. This together with the actual comment that users fill and the user's full name, I try to patch that to the beforementioned excel file on OneDrive.
All these fields now patch correctly, except for Owner_DataCard1. I expected it to behave exactly the same as the Identifier one (I'm aware of the typo there which is in the sharepoint list), but the Owner one would not work with .Default. Also, .Selected would throw the same error.
Hopefully I explained it sufficiently. Thanks a lot in advance again.
Eric