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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create Records and Ass...
Power Apps
Unanswered

Create Records and Assign to Users

(0) ShareShare
ReportReport
Posted on by 23

Hi All!

In my scenario I have a canvas app embedded in a CDS record. Basically I need to create a number o records, related to this record.

This part is usually easy, no problems with that. However I was wondering what is the best way to allow the app user to choose from a combobox 1 or more users and create a record of the related table for each one of the users selected and set it as owner of the record.

I attach a screenshot perhaps it helps to understand what i mean.

Thanks in advance

Nik

Categories:
I have the same question (0)
  • NielsHakkers Profile Picture
    25 on at

    What about using Power Automate?

     

    Have Power Apps pass the information of selected gallery item and 'array' of selected users to a Power Automate flow.

    Then in Power Automate, use an 'Apply to Each' block to apply to all items in the selected users array, and run a 'Add new row' for the current CDS environment, in which you can use the selected gallery item variable as Primary Key for selecting which table to add the new row in.

     

    Then once you completed the flow and saved it to Power Automate, you can import it in your Power App, and tie it to the "Create records" button.

     

    Note that I tried testing myself this for a bit, and I noticed that you cannot actually pass an array as variable from Power Apps to Power Automate, so you need to package the table, in Power Apps, from the Combobox to a string first, and then in Power Automate from a string to object and then array. Tip: create the action in Power Automate first to initialise a string variable and request the variable from Power Apps. (If you request the variable in Power Automate from Power Apps in a object or array variable, then you will not be able to import the flow inside your app)

    See: 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard