Showing results for 
Search instead for 
Did you mean: 
New Member

Insert multiple records in Azure SQL table



I new to Power Apps and struggling with trying to insert multiple records into Azure SQL.

I have a table with idkey, ticket number, state, city, option 1 and option 2.

Idkey is autogenerated

Ticket number, state, city are prepopulated in the table

Option 1 and Option2 are dropdown based values

Using power apps I want to select multiple tickets and add a new row with value for option 1 and option 2 alongwith current timestamp.

I have been using below logic it inserts new rows

creating a collection to capture check box - this gets the ticket numbers

on select of btn "Insert records" patch function as below:

Option_1: drpdwn_Option_1.Selected.Result,
Option_2: drpdwn_Option_2.Selected.Result,
Timestamp: DateTimeValue(Text(Now(),"[$-en-US] mm/dd/yyyy hh:mm:ss")),
UserName: User().FullName,
EmailAddress: User().Email}

It creates new records in the SQL table but,

1. inserts 739 (first ticket number) in column: ticket_number

2. State and City are blank


I know i am missing something please help me to figure it out.

Thanks in advance.


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,098)