cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
younceb
Advocate I
Advocate I

Environment variable - limit on number of chars? Save button unexpectedly disabled when adding to a solution

Attempting to use an environment variable to hold several configuration values versus making a separate environment variable for each one for a solution.

 

The structure (good or bad) is something like below. The issue is when I try to copy this value into the Default box, the Save button is never enabled. I've reviewed the limitations for Environment Variables and this should not drive the solution above 26 MB. I've tried reducing (/s)+ to one and also removing (/n)+ to none before pasting in.

 

It seems like it would be really tedious to make a separate environment variable for each value when the Parse Json connector could do this fairly easily, am I missing something?

 

 

{

  "Environment": "DEV",
  "Bot_Name": "Good Bot Name",
  "Error_Email_Notification": {
    "Subject": "DEV - Error Encountered in [Bot Name]",
    "Send_To": "email@email.com",
    "CC_To": "",
    "Body": ""
  },
  "Success_Email_Notification": {
    "Subject": "DEV - [Bot Name] Success Report",
    "Send_To": "email@email.com",
    "CC_To": "",
    "Body": "This notification serves to notify that [Bot Name] has completed successfully at [Date Time]"
  },
  "Validation_Folder_URL": "http://url/",
  "App": {
    "URL": "http://url/",
    "Env": "Quality",
    "Download_Path": "C:\\temp\\",
    "Download_FileName": "file.type",
    "Form": "Form",
    "View_Columns": "column1,column2"
  },
  "Logging": {
    "Path": "\\goodpath",
    "File_Name": "Log_[Year]_[Month]_[Day]_[Hour]_[Minute].txt"
  },
  "Metric": {
    "Hours_Saved": ".5",
    "Transactions_Processed": "1",
    "USD_Saved": "0"
  }
}
 
younceb_0-1650392837525.png

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
younceb
Advocate I
Advocate I

A fix has since been put in for this, not sure if the change had anything to do with this post. But this seems to be no long an issue as it has a 2000 char limit now

younceb_0-1651587208080.png

 

younceb_1-1651587433227.png

 

Although it is not listed in the limitations of this documentation

 

Use environment variables in solutions - Power Apps | Microsoft Docs

View solution in original post

3 REPLIES 3
younceb
Advocate I
Advocate I

Thinking along the same lines, are there any reserved or special characters that cannot be in an environment variable? 

younceb
Advocate I
Advocate I

A fix has since been put in for this, not sure if the change had anything to do with this post. But this seems to be no long an issue as it has a 2000 char limit now

younceb_0-1651587208080.png

 

younceb_1-1651587433227.png

 

Although it is not listed in the limitations of this documentation

 

Use environment variables in solutions - Power Apps | Microsoft Docs

VEEROCHET
Frequent Visitor

I have the same issue, my Parse JSON schema is very long, but extremely simple.

I would like to use a Environment variable to store it, just to make it more manageable, but I get the 2000 characters limit error.

I don't understand your response: the issue is that the JSON variable is limited to 2000 characters, how can this "No longer be an issue" when IT IS the issue.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,557)