I'm devloping an IT ticket system to practice making PowerApps. I've ran into an issue when saving ticket details.
Amongst the textboxes which the user populates before submitting their ticket, they are given the option to 'log on behalf of other user', they do this by searching and selecting the usersname from a combo box.
When they click submit the data is patched to an Excel table - this table will then be used to populate the ticketing system main screen with case details, the email address of the user who the ticket is being logged for, will also be needed to send out automated emails.
However I can't store the users email. It comes from the Office365Users connection, and is stored as a table.
Here is what I have so far:
If(CheckPhone.Value=true, Set(VarMobile, TextPhone.Text), Set(VarMobile, ""));
If(CheckPhone.Value=true, Set(VarAdditional, ComboUserSearch.SelectedItems.Mail));
Patch(Table1_1, {
user_name: User().FullName,
user_email: User().Email,
ticket_title:TextTitle.Text,
issue_description:TextDesc.Text,
mobile_number:VarMobile
proxy_user:VarAdditional
})This results in the following error message:
The type of this argument 'proxy_user' does not match the expected type 'Text'. Found type 'Table'.
So clearly it is expecting text, and can't store the value as it's type is table. But I can't convert this field to text no matter what I try. I have added '.Value', .'Text'.
How do you store these table values?