I have 2 SP lists as below:
StaffContact:
Name
Phone
EmployeeContact:
Username
Tel
Fax
The 'Name' and 'Username' fields are both text field and describe the same thing. I need them merge together into same column. 'Phone'='Tel', too. StaffContact do not have 'Fax' field but I want the merged collection have column 'Fax' with empty content.
I tried to build a collection but keep getting error in PowerApp Studio. Could you please advise? Here is my code I put in App.OnStart:
ClearCollect(
MergedCollect,
ShowColumns(
AddColumns('StaffContact', "User", Name),
"Phone","Fax"));
Collect(
MergedCollect,
ShowColumns(
AddColumns('EmployeeContact', "User", Username),
AddColumns('EmployeeContact', "Phone", Tel),
"User","Phone","Fax"));