web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Compare two SQL tables...
Power Automate
Answered

Compare two SQL tables and retrieve ID from one table

(0) ShareShare
ReportReport
Posted on by 9

Hello, 

I am getting records from SQL table A from X db, then using ID from table A to get records from Jira. Now I am trying to update data from SQL to Jira if the ID from SQL matches with the Jira record; if it doesnt match, it should create. I'm successful until this part. 

In the update of SQL to Jira, we have a field called ‘ITSME(user) in table A from SQL db X that needs to be mapped to Jira's field ‘Support contact', but Jira doesn’t accept the user name as an input from API request instead, we need to pass the objectID of that user.

Now we have SQL table B in db Y, which has user name and objectID columns, so when we update SQL to Jira, we need to retrieve the objectID of the ITSME from table B and map it to the Support contact field for each record.

 

I have tried adding SQL get rows step to get the ObjectID from Table B based on the current ITSME value. And I am getting the ObjectID but since it is an array I am unable to set that in Jira update request.  

Should I be doing this differently? 

PowerPuser_0-1718322728183.png

 

Categories:
  • Verified answer
    PowerPuser Profile Picture
    9 on at

    I was able to figure out it, I was appending the objectID value before which gives multiple values, instead I used set variable which gives one objectID for comparison.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard