Showing results for 
Search instead for 
Did you mean: 
Advocate IV
Advocate IV

SQL connector howto obtain Row Id

I noticed that the SQL connector actions Get Row, Update Row and Delete Row all require a so called Row ID.

So rather than to use a key field in the table, we seem obliged to use this Row ID instead.


I've been looking at what is returned by Get Rows to see if the Row ID was part of this but it does not seem the case.


  "@odata.context": "$metadata#datasets('default')/tables('%5Bdbo%5D.%5BMH_SAPdata_updates%5D')/items",
  "value": [
      "@odata.etag": "",
      "ItemInternalId": "895216ba-649a-4913-a7cb-df35bf891400",
      "Sales_x0020_Document": "121029    ",
      "Comment": "<div class=\"ExternalClass412470A3E48343ABA10351B566D26833\"><p>?Where?<br></p><p>When????<br></p><p>Who?<br></p></div>",
      "Reason": "How?"

I wonder what to make of the 'ItemInternalId', but I have also no idea how to obtain that.

I've tried something like: body('Get_rows')['ItemInternalId'] but it either returns nothing or flow whines it doesn't exist.


Can anyone explain how to use these connectors if one doesn't know the Row ID's, because for now I don't believe there is. To me it seems the trick with the Row ID renders these SQL connection actions completely useless.


Meanwhile I find this and I'm trying to make sense of it but I fail again.


If I understand the limitations correctly, the table requires to have a primary key, so the RowID would be the Sales Document since this is the primary key.




I'm re-running my failed flows,... and today it all works. Completely flabbergasted!




So the bottom line, the RowID is in fact the primary key defined on your table.


Sorry for my previous rant but I now just keep my fingers crossed that it continues to work.  🙂



Thanks for any feedback



Community Support
Community Support

Re: SQL connector howto obtain Row Id

Hi @MichelH,


Thanks for sharing and updating. I am so glad that it is working for you now.

Yes, the Row Id is the primary key that we defined on the table.

Let’s say that you have two SQL tables, one has a Primary key, another not.

In the SQL action Get rows, you could select both tables. However, in action Update row which is asking a value for Row id, you won’t be able to select the table that doesn’t have a Primary key field.



Best regards,


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

Re: SQL connector howto obtain Row Id

Hello, @MichelH!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yamao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

Flow Community Manager

Community Manager
Microsoft Power Automate | Power Virtual Agents
Are YOU a member of a Power Platform User Group?
Fill out This Form to claim your Community User Group Member Badge!

Helpful resources


Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!


Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (5,404)