cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MaciejFr2000
Regular Visitor

Patching lookup column

Hi,

I know that we had the same topics on this comunity, but in my case it looks a bit diffrent...

So, i have to create the app which helps end users collect data about trainings.

I created sharepoint list as a "database" which will collect basic data like name, surname, department etc. 

In the second list I created list of available trainings with clasyfication.

MaciejFr2000_0-1635421972827.png

And now on the first list i have lookup columns (SoftTraining, TechnicalTraining), in power apps I have to filter users as Junior,Mid,Senior and what kind of training it is soft skills or technical skills.

 

How I can send the response to sharepoint list from ComboBox ?

I try do it like that:

UpdateIf(<source>,Created By.Email=User().Email,{SoftTraining: ComboBox1.selected});

And I get error: "Invalid argument type. Expecting a Record value,but of a diffrent schema"

 

I guess I can use power apps forms, but then I can't filter records by Training type or assignment 😞

I see: Choices([@<source>].SoftTraining), how I can edit this formula to filter trainings ?

 

I hope it's clearly, thank you in advice !

Maciej

1 REPLY 1
gabibalaban
Super User
Super User

 

@MaciejFr2000 ,

How I can send the response to sharepoint list from ComboBox ?

 

It depends on how is defined the Items property of the ComboBox. Let's take assigment for example:

 

1. ComboBox Items = Choices([@TrainingList].Assignment)

   You can use your formula:

 

UpdateIf(
    [@TrainingList],
    Created By.Email=User().Email,
    {Assignment: ComboBox1.Selected}
);

 

2. ComboBox Items = Local Collection of assignment type: 

 

UpdateIf(
     [@TrainingList],
     Created By.Email=User().Email,
     {Assignment: LookUp(
                      Choices([@TrainingList].Assignment),
                      Value=ComboBox1.Selected)
     }
);

 

Hope it helps !

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,406)