Skip to main content
Power Automate
    • Robotic process automation
    • Power Automate Desktop
    • Process advisor
    • AI Builder
    • Connectors
    • Templates
  • Pricing
    • Blog
    • Documentation
    • Roadmap
    • Self-paced learning
    • Webinar
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • Register
    • ·
    • Sign In
    • ·
    • Help
    Go To
    • Microsoft Power Automate Community
    • Community News
    • News & Announcements
    • Get Help with Power Automate
    • General Power Automate Discussion
    • Connecting To Data
    • Building Flows
    • Using Flows
    • Power Automate Desktop
    • AI Builder
    • Power Automate Mobile App
    • Translation Quality Feedback
    • Share, Chat, Discuss
    • Community Chat & Announcements
    • Power Automate Cookbook
    • Off Topic Discussion
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Watch & Share Videos
    • Webinars and Video Gallery
    • MBAS Gallery 2019
    • MBAS Gallery 2020
    • Give Feedback & Share Ideas
    • Power Automate Ideas
    • Report Issues
    • I Found A Bug
    • Find & Join Local User Groups
    • Power Automate User Groups
    • Read & Share Blogs
    • Power Automate Community Blog
    • Community Blog Topic Suggestions
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Microsoft Power Automate Community
    • Forums
    • Share, Chat, Discuss
    • Power Automate Cookbook
    • Loading Environment Variables

    Loading Environment Variables

    09-16-2020 20:01 PM

    Super User III Jcook
    Super User III
    298 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    Jcook
    Super User III Jcook
    Super User III
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    Loading Environment Variables

    ‎09-16-2020 08:01 PM

    Summary:

    This Template is for populating a JSON structured parameters using Environment Variable.

    This Power Automate Flow is a bit complex. So I decided to upload this as a Template for anyone that want to use Environment Variables for Deployment of Power Automate Flows.

     

    My blog post:

    https://flowaltdelete.ca/2020/09/09/using-environment-variables-as-parameters-for-power-automate-dep...

    Is a very in-depth guide on how to build this Flow from scratch.

     

    Check out the Blog post for instructions on how to create Environment Variables.

     

    Importing the Zip File

    1. Download Zip file below, and import into your tenant / Environment

    2. Once import is successful. create a Environment Variable, and input the JSON data that fits your solution
      (See Blog above if you need help with this step)

    3. Copy down the Schema name (Name) from the Environment Variable
      (Should be PublisherName_EnvironmentVariableName)
      SolutionPic1.png

       

    How To Use Flow Template:

    Open the Flow in Edit mode

     

    1. Remove the Manual trigger and add a trigger based on your needs

    2. 'Initialize variable - Schema Name', change Value to your schema name of your Environment Variable
      LoadParam-Flowpic2.png

       

    3. In the 'Load Parameters' scope, open the 'Parse JSON - Parameters' action and click 'Generate from sample' and paste your Default Value from the Environment Variable to generate the Schema
      LoadParam-Flowpic3.png
    4. Now inside the 'Try' scope add your actions that you want to run normally

    Inside the 'Catch - Errors' scope, add any actions you want to run when the above scopes fail. For example you can add a send email action to alert when the Flow fails Etc.
    LoadParam-Flowpic4.png

     

    That is how this template can be used, for a full walkthrough / step guide check out my blog post on this:

    https://flowaltdelete.ca/2020/09/09/using-environment-variables-as-parameters-for-power-automate-dep...

     

     

     

     





    Did I answer your question? Mark my post as a solution!

    If you like my post please hit the Thumbs Up


    Proud to be a Flownaut!


    Check out my blog for Power Automate tips, tricks, and guides
    FlowAltDelete

    Follow @FlowAltDelete


    LoadParameters-Template_20200917030024.zip
    Labels:
    • Labels:
    • Automated flows
    Message 1 of 1
    298 Views
    0 Kudos
    Reply
    • All posts
    • Previous Topic
    • Next Topic

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Automate
    • Power Virtual Agents
    • Sign up free
    • Sign in

    Browse

    • Templates
    • Connectors
    • Partners

    Downloads

    • Mobile
    • Gateway

    Learn

    • Documentation
    • Learn
    • Support
    • Community
    • Give feedback
    • Blog
    • Pricing
    • © 2021 Microsoft
    • Twitter
    • RSS Feed
    • YouTube
    • Contact us
    • Trademarks
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Terms & conditions