cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
larschrjensen
Frequent Visitor

Pre-populate environment variables with comples types

I was very happy to see the ability to prepopulate connection references and enviroment variables in the build tools for Azure Devops (as described here https://docs.microsoft.com/en-us/power-platform/alm/conn-ref-env-variables-build-tools). For me this works great with simple string-based values, but can this method also be used to prepopulate environment variables with more complex type such as JSON. I can't seem to get a grip on how to accomplish this.

 

Any with any experiences?

 

{
  "EnvironmentVariables": [
    {
      "SchemaName": "tst_Deployment_env",
      "Value": ""
    }
}

 

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @larschrjensen :

The format of the JSON string you provided looks wrong:

 

{
"EnvironmentVariables": [
{
"SchemaName": "tst_Deployment_env",
"Value": ""
} ]
}

 

Best Regards,

Bof

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Users online (1,419)