Hello, I am trying to patch (insert) new records from the powerapps to my sharepoint list.
Error msg:
The type of this argument 'BU_x002f_Dept' does not match the expected type 'Text'. Found type 'Error'. The function 'Patch' has some invalid arguments.
Tried to remove the entire row of BU/Dept: BU.SelectedText.Value, however the new error shows the duration. Same error as well, just that it is 'Number'.
Current Code as follows:
Patch (
'Teams_Creation',
Defaults ('Teams_Creation'),
{
User_display_Name: Office365Users.MyProfileV2().givenName,
User_Email: Office365Users.MyProfileV2().mail,
'BU/Dept': BU.selectedtext.value,
Site: Site.Text,
Purpose: Purpose.Text,
Date_Required: DatePicker1.SelectedDate,
Members: Members.SelectedItems,
Duration: Duration.SelectedText.value,
Date_Requested: Today()
}
)
Additional Info on the Sharepoint List:
BU/Dept is the name of column, Single line of text Type
Duration is the name of column, Number Type.