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 Automate / Join two items with sh...
Power Automate
Answered

Join two items with shared column value

(0) ShareShare
ReportReport
Posted on by 254 Moderator
I have 2 SP lists, one for Questions and one for Answers
 
In Answers i dont have question title, only questionID.
I need to get a new object based on answers item with title included.
 
 
 
 
 
I already got the Question item connected to the Answer item (From Filter Array)
but unsure how to join them from here.
 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    Chriddle Profile Picture
    8,513 Super User 2025 Season 2 on at
    A simple and powerful way to query elements (or their values) based on IDs is to use XPath.
    Then use addProperty to add the queried value to the object.
     
    An example:
    From: @{outputs('Compose-Questions')}
     
    Map:
    addProperty(
    	item(),
    	'Answer',
    	first(	
    		xpath(
    			xml(json(concat('{"Root": {"Item": ', outputs('Compose-Answers'),'}}'))),
    			concat('//Item[QuestionId="', item()['QuestionId'],'"]/Answer/text()')
    		)
    	)
    )
     
     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard