web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update Multiple Record...
Power Apps
Unanswered

Update Multiple Records With Data From Different Table

(0) ShareShare
ReportReport
Posted on by 353

Hi all,

 

I have two tables: Resources and Skill Sets. The relation between Resources and Skill Sets is 1:N, meaning that one resource (employee) can have many skill sets. Skill set is defined as a combination of skill level and skill name, e.g. 1-Beginner Azure VMs.

 

After a user creates a resource inside the app, they have to add at least one skill set to that resource. All that is working perfectly fine and I am able to relate any number of skill sets to the resource using ForAll and Patch function.

 

As you can see Resource with the ID: 978dff0f-9766-ee11-9ae7-6045bdd62e33 has three different skill sets:
Resource table

sdedic_3-1696938586638.png


Skill Set table

sdedic_1-1696938238393.png

 

However, I also need to concatenate all those skill sets for each resource and save it inside Resource table as a string in 'Skill Set' column (the empty one). I've tried using the same logic as with relating resources with skill sets (ForAll and Patch functions), but it doesn't work. 

 

Any advice is appreciated.

 

Thank you.

Best

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    HI @sdedic , Do you want AWS CloudFormation, Amazon CloudWatch, React.js (Class components) to be store in 'Skill Set' column? Below will help you to concate:

     

    Concat(Filter(Skill Set Table, Resource_SkillSet = 978dff0f-9766-ee11-9ae7-6045bdd62e33), SkillSet_SkillName, ", ")

     

    Below will help to patch:

     

    Patch(Resource table, LookUp(Resource = "978dff0f-9766-ee11-9ae7-6045bdd62e33"),{Skill Set: Concat(Filter(Skill Set Table, Resource_SkillSet = 978dff0f-9766-ee11-9ae7-6045bdd62e33), SkillSet_SkillName, ", ")})

     

    The same  above code could be used in combination with ForAll to patch multiple record.

     

     -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @sdedic ,

    After SkillSet table patch you should use a:

    Patch(Resource,

             Lookup(Resource, ResourcesGUID=currentResource),

    {‘Skill Set’:Concat(Filter(SkillSetTable, Resource_SkillSet.Resources=currentResource),Text(Skill_Level&”;”)}
    )

    The formula is theoretical and need to be updated to specific columns name.

  • ar87 Profile Picture
    353 on at

    Hi @ANB,

     

    Thank you for your help. Unfortunately, I'm still getting the same error. The error is related to the 'Skill Set' column that needs to be updated.

     

    Since I need to update 'Skill Set' column for all resources created at that point, I need to combine ForAll and Patch functions. So, I tried integrating your formula to ForAll but the error remains.

     

    Here is complete formula I am using:

     

    ClearCollect(resourcesCollection, galResources.AllItems);
    
    ForAll(resourcesCollection,
     Patch(Resources, LookUp(Resources, Resource = resourcesCollection[@Resource]),
     {
     'Skill Set': Concat(
     Filter('Resource Skill Set', Resource_SkillSet.Resource = resourcesCollection[@Resource], SkillSet_SkillName.'Skill Name'), ",")
     }
    ));

     

     

    Here is the error I am getting for the above formula:

    sdedic_0-1696947820948.png

     

    Though I am not sure if the filter condition is correct, I can see that my datasource 'Resource Skill Set' is not being recognized in this particular formula. Once I figure out how to resolve that issue I can see if matching condition in filter is correct or not.

     

    Do you have any clue why the datasource isn't recognized in the Patch function for this particular column?

     

    EDIT:

    When I used collection as a data source for 'Resource Skill Set', the above formula worked. The only thing now is that I am getting some commas (", ,") stored under 'Skill Set' column, and not full skill name and skill level.

     

    Best

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @sdedic , Can you try this:

    ClearCollect(resourcesCollection, galResources.AllItems);
    ForAll(resourcesCollection As var,
     Patch(Resources, LookUp(Resources, Resource = resourcesCollection[@Resource]),
     {
     'Skill Set':
     Concat(
     Filter('Resource Skill Sets',Resource_SkillSet = var.Resource), SkillSet_SkillName, 
     ", ")
     }
    )
    );

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB

  • ar87 Profile Picture
    353 on at

    Thank you both. You helped me build the working formula and now I have a string of skill sets appended to the resource.

    sdedic_0-1696949801849.png

     

    The only change I had to make to your solution was to create a collection locally for skill sets and then use them in Patch function. Otherwise I was getting that error that "the specified column is not accessible in this context."

     

    Once again thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard