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 / Insert multiple record...
Power Apps
Unanswered

Insert multiple records in Azure SQL table

(0) ShareShare
ReportReport
Posted on by

Hi,

 

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:

Patch(
myTicketTable,
Defaults(myTicketTable),
{
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.

Categories:
I have the same question (0)

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 765 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 272

Last 30 days Overall leaderboard