cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rormiston
New Member

ID required in ADD ROW to SQL - how do i send null for SQL to assign the ID

I have been using flow for about a year on the same sql table.  When an item is added in a different location the trigger is supposed to add a new row to the sql table.  It has been working great for some time.

 

Now, recently, it is wanting me to assign the ID to the new row in SQL, which historically, it creates the ID on it's own.

 

is this a setting in SQL that someome may have changed, or is this a change in FLOW?  is there a way to get the max id form SQL and add 1?  or is there a better solution?

 

 

1 REPLY 1
tfhegdbn
Helper IV
Helper IV

Hi ,

 

Oddly, I did not require assign ID to the new row in SQL when using Insert row.
 
Can you share your Flow? This ID is required to be added by itself, or the system will automatically generate a unique ID.
 
If you want to get Max id, you may try to use Get rows to get all the ids, then store them in an array variable, and then get the maximum value in the array with max() function.
 
This value should be max id.
 
Maybe you can try it.
 
Regards.

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,318)