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 / 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

Create and Assign.PNG
Categories:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard