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

Custom object

(0) ShareShare
ReportReport
Posted on by 20

Hi,

I am new to PAD and I have one query, Custom object – Contains pairs of properties and values. Is it possible to extract particular value from custom object with it's propertie name?

or 

After converting custom object to json how to extract values in PAD from json?

 

Thanks

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You can extract values from custom object with the syntax:

     

    %CustomObject.KeyNameThatHasNoSpaces%

    or

    %CustomObject['Key name that can contain spaces']%

  • Amit_Chaudhary Profile Picture
    20 on at

    @Henrik_M ,

    Thanks for yor prompt reply.

    When I am trying to get property of custom object with %MyCustomObjectName['Key name that can contain spaces']%,I am getting error saying  (Variable 'Custom_object' doesn't have a property 'Key name that can contain spaces' at compile time itself ''.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Try pasting this working code into your PAD and compare it with yours:

    Variables.ConvertJsonToCustomObject Json: $'''{\"Car Brand\":\"Audi\", \"Car Value\": 500000}''' CustomObject=> JsonAsCustomObject
    Display.ShowMessageDialog.ShowMessage Message: $'''The brand of the car is %JsonAsCustomObject['Car Brand']% and its value is %JsonAsCustomObject['Car Value']%''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: True

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 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard