Unlock the Full Potential of Parse JSON in Power Automate

Sdílet
Vložit
  • čas přidán 7. 08. 2024
  • In this video we dive into the extensive capabilities of the Parse JSON action in Power Automate. The Parse JSON action is often underutilized. This video will shed light on the lesser-known functionalities and provide you with the knowledge to enhance your flows significantly.
    Video Chapters:
    00:00 Introduction: Introducing the Parse JSON action, outlining its importance and the purpose of our guide.
    00:38 Example of Normal Usage: Get started with a basic example, demonstrating the standard way to use the Parse JSON action in Power Automate.
    02:30 Adding Titles and Descriptions to JSON Objects: Learn how to make your JSON objects more understandable and maintainable by adding titles and descriptions.
    05:12 Specifying Required Fields: Discover how to define certain fields as required in your JSON schema to ensure data integrity.
    06:16 Solving the 'Invalid Type' Error: We tackle the common error of receiving an 'Invalid Type' message, showing you how to expect the correct data types and handle null values effectively.
    09:30 Specifying Ranges for Values: Find out how to set minimum and maximum value constraints for numerical data in your JSON schema, adding another layer of data validation.
    12:44 Multiples Validation with the multipleOf Keyword: Explore how to verify that a number is a multiple of another number, a useful check for various numerical inputs.
    16:20 String Length Constraints: Learn to use the minLength and maxLength keywords to specify acceptable string lengths, ensuring your data meets predefined criteria.
    18:16 Email Address Validation: Utilize the format specifier to validate email addresses within your JSON data, a critical step for data collection processes.
    19:13 Conclusion
    This video is perfect for users who are familiar with the basics of Power Automate and looking to leverage the Parse JSON action to its full potential. By the end of this guide, you'll be equipped with the knowledge to implement advanced JSON validation, enhancing your automation projects and ensuring data accuracy.
    Be sure to check out: json-schema.org/understanding... to further understand what is possible!
    If you found this video useful, please consider making a donation to the channel:
    www.buymeacoffee.com/paulie
  • Jak na to + styl

Komentáře • 44

  • @Sloal
    @Sloal Před 5 měsíci +5

    That is the best intro to a CZcams video ever!!! Super useful tips. Thanks for sharing.

  • @FullRewardMinistries
    @FullRewardMinistries Před 20 dny

    I wasn't one minute in before I figured out how to do something I'd been trying to do for 12 hours!!! Power Automate didn't give me any helpful tips, and I knew what I was doing was super simple. I had been trying to extract all of the values in one list and migrate it to another. I had some lists with friendly text that I could not preserve without separating the friendly text from the URL. Now that I have the first step down all I need to do is learn how to pull the friendly text and URL out and put them back together! Thank you!!!!!

    • @PaulieM
      @PaulieM  Před 14 dny

      Brilliant to hear! Lot of hidden gems in that action!

  • @jibbsautomations
    @jibbsautomations Před 4 měsíci +2

    Paul, your videos on JSON in PA have been super helpful for me, thank you!

    • @PaulieM
      @PaulieM  Před 4 měsíci

      I appreciate that. Thank you 🙏

  • @JumpUpJumpUpandPowerPlatform
    @JumpUpJumpUpandPowerPlatform Před 2 měsíci +1

    This may well be the first Power Platform video I've watched the entire way through without skipping. Very very cool.

    • @PaulieM
      @PaulieM  Před 2 měsíci

      Glad it was helpful. I felt like I’d unlocked a cheat code when I found that functionality 😂

  • @jamesclark2020
    @jamesclark2020 Před 5 měsíci +1

    This definitely opens up a lot of possibilities to explore.

  • @trl_lrt
    @trl_lrt Před 4 měsíci

    Great video! These details and foundation are needed for anyone working with json data.
    It would be great to dive into the pros and cons of using parse json vs not using it. I've been testing flows that respond back to powerapps and I have the same api output sent back as raw variable outputs['HTTPS']?['body'] (not using parse json) and then the same but using the dynamic content generated from parse json step that is just the variable reference of 'body'. But then back in powerapps attempting to work with even basic data is complex. Understanding how to access nested child nodes depending on the different formats of json received back into powerapps would be really great to understand more detail.

  • @avinoamrothenberg1244
    @avinoamrothenberg1244 Před 4 měsíci

    😊 Great explanation as always

  • @fogila
    @fogila Před 5 měsíci

    Thanks Paul, good stuff.

  • @365g
    @365g Před 5 měsíci +1

    Classic Paulie M... loads of valuable nuggets, loved the intro :)

  • @chrisnicol8175
    @chrisnicol8175 Před 5 měsíci

    Love the intro Paul! And thanks, I know this will be super useful.

  • @franknielsen3219
    @franknielsen3219 Před 5 měsíci

    You are a truly wizard with Power Auotmate 👌👌👌👌

  • @temidayolonge4566
    @temidayolonge4566 Před 5 měsíci

    Hello Paul. Happy New Year. This is gold. Thanks as always

  • @antonioskokiantonis7051
    @antonioskokiantonis7051 Před 5 měsíci

    Great stuff!

    • @PaulieM
      @PaulieM  Před 5 měsíci

      Yeah - some interesting nuggets in there. Glad you enjoyed

  • @karolzareba9003
    @karolzareba9003 Před 5 měsíci +1

    Man! Why i didn't saw this 1y ago!

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      I guess because I only made it a week ago? But still I am glad you enjoyed it. Keep your eyes peeled for another video this week!

  • @nguyenmanhtuan1772
    @nguyenmanhtuan1772 Před 5 měsíci

    Yes I did learn many new things about Parse JSON, thank you very much, Sir :)

    • @PaulieM
      @PaulieM  Před 5 měsíci

      You are most welcome

  • @ukm365
    @ukm365 Před 5 měsíci

    Someone has fallen asleep on the keyboard with the JSON schema site loaded up!! 😏

  • @ukm365
    @ukm365 Před 5 měsíci +1

    I think that last one is the REAL hack, here.
    I didn't know that you could lean on the Parse JSON to validate in the middle of a flow. It stands to reason, and that email thing is SOOOOOOOOOOOOOOOOOOOOOOO required by so many things.
    I predict me using it in answers on the community about ... I dunno ... a bazillion times. XD

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      yeah, that part is really cool. Quite a lot of things you can unearth there.

  • @AdiCristea
    @AdiCristea Před 5 měsíci +1

    Paul: "we're going to embark on a 20 mins journey about JSON and it's going to be tedious"
    Me, at the end of the video: "wait, is that it? I need mooooooooooooore!!"
    This was exceptional, thank you, Paul!!!

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      I could have gone on and on! 😂

    • @AdiCristea
      @AdiCristea Před 5 měsíci

      @@PaulieM the resource is gold also, just going through it as we speak

    • @AdiCristea
      @AdiCristea Před 5 měsíci +1

      @@PaulieM PS. good bye Select (in some cases), which actually applies to the other video from today too :)

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      @@AdiCristea yes, lots of good stuff in there. Let me know what you find that is useful!

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      @@AdiCristea check out enum, I really should have included that in the video!

  •  Před 5 měsíci

    I liked that video before the warning message started ❤

  • @janvanhaver6970
    @janvanhaver6970 Před 5 měsíci

    I've definitely watched 1 hour Power Automate videos that have brought me less value than these 20 minutes 😅
    Super useful tips! One question, though: why did you not release this 6 months ago? 😉 (We have a D365 on prem to online migration running this weekend)

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      I only recently discovered the hidden potential in the action (which has since led me to find other stuff). Apologies! Glad you for it useful!

  • @juliusm367
    @juliusm367 Před měsícem

    Hi Paul, can you please help create an automated event triggered by an email. The start and end times of the event must be as stipulated in the body of the email. the subject of the event must be the subject of the email.

  • @geralddahl9159
    @geralddahl9159 Před 5 měsíci

    Thx for sharing this - not boring at all. First question: Why the need to tweek the output of the Send an HTTP Request to SharePoint around the 1:34 - 1:47 mark of video? Second question: I can't wrap my head around how at the 3:34 mark one has the ability to adjust the schema of the Parse JSON such that the output is passed on to the subsequent compose step as a highly delineated object with nuanced reference to firstName, email etc. My tiny chip brain gets stuck when it tries to imagine the Parse JSON step in Power Automate studying what it receives from the HTTP response step - it only sees field_1 field_2 etc. From what I see you doing, it appears one has the 'power' to input one's own preference within the Parse JSON step so as to suggest that, going forward, Power Automate append the structure/definition that the user wants as part of the way it outputs the payload going forward. I'm probably not clearly explaining the concept that my mind envisions is happening around all of this. It seems incongruent/dissonant - I would have imagined that a declaration like that would have caused an error. If you are able to understand what I'm chewing on and then confirm that I'm understanding things rightly, or rephrase how I should be understanding, your feedback would be welcome. Finally, two takeaways I did get: (1) never knew that a description could be added that would appear as part of the dynamic choice interface; (2) love your treatment on nulls, especially the one that allows the affected object to continue to show as a displayed dynamic option in the interface.

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      First Question: I could have done it without tweaking the output but that would have made the parsing more complex. I was simply accessing the "Value" output of the HTTP action, because it could also return the nextlink property at the same level.
      Second Question: The JSON Schema provided to the Parse JSON action is still aware of the original field names (Field_1 etc) but we have decorated the schema with more details. Internally it will still be accessing the data via the original field names, but subsequent actions will output the more user friendly details we have provided in the schema.
      The treatment of the nulls is a great solution to a long standing problem. It was actually someone else that commented on another of my videos that provided that solution and the inspiration for this video.

    • @geralddahl9159
      @geralddahl9159 Před 5 měsíci +1

      @@PaulieM thanks!

  • @ukm365
    @ukm365 Před 5 měsíci

    hahaha ...
    This is what I say before most things I talk about ... about anything!

  • @yaynative
    @yaynative Před 5 měsíci

    I thought I knew something about JSON 🤦‍♂️

    • @PaulieM
      @PaulieM  Před 5 měsíci +1

      Now you know a bit more 😀