cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paragchapre
Level: Powered On

Select Multiple records and insert into CDS

Hello,

 

I have created an entity in CDS name TST_WebAppConfig and I have below data.

I have created a power app with 2 field and I want to select multiple employee name for a Webapp and insert into CDS.

 

Patch(TST_WebAppConfig ,Defaults(TST_WebAppConfig ),{WebAppName:Textbox1.text, EmployeeName:ListBox1.SelectedItems.Value});

But it is not inserting record in CDS. Is something wrong with this function?

 

WebApp name

Employee name

ABC

Test user A

ABC

Test user B

XYZ

Test user B

PQR

Test user A

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Select Multiple records and insert into CDS

Hi @paragchapre ,

 

It seems that you are trying to bulk update records to data source. Please refer to below documentation about how to achieve this:

https://powerapps.microsoft.com/en-us/blog/bulk-update-using-forall-and-patch/

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Select Multiple records and insert into CDS

Hi @paragchapre ,

 

It seems that you are trying to bulk update records to data source. Please refer to below documentation about how to achieve this:

https://powerapps.microsoft.com/en-us/blog/bulk-update-using-forall-and-patch/

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.