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 Automate
Unanswered

Xml to JSON

(0) ShareShare
ReportReport
Posted on by 219

Hi, Can you please let me know to how to convert the below xml to json in Power Automate and get the field my:empname

 

{
"my:myFields": {
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"@xmlns:pc": "http://schemas.microsoft.com/office/infopath/2007/PartnerControls",
"@xmlns:dfs": "http://schemas.microsoft.com/office/infopath/2003/dataFormSolution",
"@xmlns:tns": "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
"@xmlns:s1": "http://microsoft.com/wsdl/types/",
"@xmlns:xhtml": "http://www.w3.org/1999/xhtml",
"@xmlns:http": "http://schemas.xmlsoap.org/wsdl/http/",
"@xmlns:tm": "http://microsoft.com/wsdl/mime/textMatching/",
"@xmlns:soap": "http://schemas.xmlsoap.org/wsdl/soap/",
"@xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",
"@xmlns:mime": "http://schemas.xmlsoap.org/wsdl/mime/",
"@xmlns:soap12": "http://schemas.xmlsoap.org/wsdl/soap12/",
"@xmlns:wsdl": "http://schemas.xmlsoap.org/wsdl/",
"@xmlns:my": "http://schemas.microsoft.com/office/infopath/2003/myXSD/2013-12-11T21:57:50",
"@xmlns:xd": "http://schemas.microsoft.com/office/infopath/2003",
"@xml:lang": "en-US",
"my:EmployeeInjury": {
"my:Employee_Info": {
"my:empname": "Sumanth Diana",
"my:empaddress": "23417 test Address",
"my:empstate": "Missouri",
"my:emphomephone": "636-3",
"my:empcellphone": "636-3",
"my:empworkphone": "630-3",
"my:empDOB": "03/11/1969",
"my:empage": "51",
"my:empsex": "Male",
"my:empyearsemployed": "0",
"my:empmonthsemployed": "10",
"my:emphiredate": "12/16/2019",
"my:empworktimelost": "Yes",
"my:empworkerstatus": "Hourly",
"my:emphoursworkedperday": "10",
"my:emphoursworkedperweek": "40",
"my:sundayoff": "true",
"my:mondayoff": "false",
"my:tuesdayoff": "false",
"my:wednesdayoff": "false",
"my:thursdayoff": "false",
"my:fridayoff": "true",
"my:saturdayoff": "true"
}
}
}
}
Categories:
  • SanmeshG Profile Picture
    1,956 Moderator on at

    Hi @SumanthDundi7 ,

     

    The above one code is a JSON object. Please use the below expression to get empname:

    outputs('Data')?['my:myFields']?['my:EmployeeInjury']?['my:Employee_Info']?['my:empname']

    In place of outputs('Data') , please use the expression from which you are getting this data. Also attaching an image of the output.

    expression.png

    If this helps , please give this a thumbs up and accept this as a solution.

     

    Thanks,

    Sanmesh

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard