<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Is there a way to update an Environmental Variable in Blue Prism? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79023#M30982</link>
    <description>&lt;P&gt;Try to do it directly if it is possible. Login into the database which you use or the BP server uses (Look for VBO and set it up e.g. with Data – SQL Server / or similar C# code etc.). After you get the access to your BP database:&lt;/P&gt;
&lt;P&gt;Execute&lt;/P&gt;
&lt;P&gt;UPDATE [YOUR_BP_DBname].[dbo].[BPAEnvironmentVar]&lt;/P&gt;
&lt;P&gt;SET value='YourNewValue'&lt;/P&gt;
&lt;P&gt;WHERE name='NameOfYourEnviromentalVar'&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Frantisek Hortai&lt;BR /&gt;Senior Consultant&lt;BR /&gt;EY - Ernst &amp;amp; Young&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Aug 2022 14:51:00 GMT</pubDate>
    <dc:creator>FrantisekHortai</dc:creator>
    <dc:date>2022-08-25T14:51:00Z</dc:date>
    <item>
      <title>Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79016#M30975</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Background Info&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have a process that searches for data between two environmental variables StartDate and an EndDate (dd/mm/yyyy). The process can either find data (which results in a successful run) or not (which results in a unsuccessful run).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Simulation&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Let's say we use &lt;STRONG&gt;StartDate = 02/11/2020&lt;/STRONG&gt; and &lt;STRONG&gt;EndDate = 06/11/2020&lt;/STRONG&gt;.
Data has been found so we can say that the process ran &lt;STRONG&gt;successfully&lt;/STRONG&gt; on &lt;STRONG&gt;07/11/2020&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;When I want to run the process a second time, I want it to start from the last successful run instead of manually updating the environmental variable.&lt;/P&gt;
&lt;P&gt;Unsuccessful runs are being catched.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;
Is there a way to store the last successful run into the environmental variable StartDate ?&lt;/P&gt;

--------------------------------------------------&lt;BR /&gt;

&lt;B&gt;Disclaimer:&lt;/B&gt; This content was auto-posted from Stackoverflow. The original Stackoverflow question is here &lt;A href="https://stackoverflow.com/questions/64785384/is-there-a-way-to-update-an-environmental-variable-in-blue-prism"&gt;Stackoverflow Post&lt;/A&gt;, posted by &lt;A href="https://stackoverflow.com/users/14618858/elbo"&gt;elbo&lt;/A&gt;.</description>
      <pubDate>Thu, 12 Nov 2020 09:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79016#M30975</guid>
      <dc:creator>Digital_WorkerB</dc:creator>
      <dc:date>2020-11-12T09:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79017#M30976</link>
      <description>You cannot set the value of an Environment variable from within a process/object. Data items tied to environment variables are read-only. With that said, there are some ways around this:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;You could persist the end date value to a work queue and the next time the process runs read it from the queue instead of the environment variable.&lt;/LI&gt;
&lt;LI&gt;Similar to the above you could persist to a file.&lt;/LI&gt;
&lt;LI&gt;You could write the value to the BP database table responsible for handling environment variables: &lt;STRONG&gt;BPAEnvironmentVar&lt;/STRONG&gt;. You must exercise extreme caution with this though as any errors/mis-writes could impact other processes.&lt;/LI&gt;
&lt;LI&gt;You could develop a VBO that automates the BP client to open it and update the environment variable value through the UI itself.&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2020 14:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79017#M30976</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2020-11-13T14:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79018#M30977</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; There's also the&amp;nbsp; ​​AutomateC CLI command /setev&lt;BR /&gt;&lt;BR /&gt;I'm not sure why that command isn't listed in the help docs though.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2020 15:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79018#M30977</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2020-11-13T15:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79019#M30978</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="ae9fdab1-2d26-46c7-9f20-a84e446d45c9" data-tag-text="@Dave Morris" href="https://community.blueprism.com/network/profile?UserKey=ae9fdab1-2d26-46c7-9f20-a84e446d45c9" data-itemmentionkey="21e121ab-fa12-46b4-8cdc-438c8e2f27c5"&gt;@Dave Morris&lt;/A&gt; you are correct. You can set the value using AutomateC, but you have to make sure you supply the variable name, data type, and description in addition to the value every time you want to set it. It makes sense for creating a new environment variable, but it seems kind of goofy, IMHO, for just setting the value of an existing variable. 🤷‍&lt;span class="lia-unicode-emoji" title=":male_sign:"&gt;♂️&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2020 17:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79019#M30978</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2020-11-13T17:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79020#M30979</link>
      <description>Makes sense. Also, it occurs to me now that unless it's been fixed, I think /setev doesn't work for DateTimes.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Nov 2020 17:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79020#M30979</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2020-11-13T17:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79021#M30980</link>
      <description>&lt;SPAN&gt;Any idea whether the CLI works with DateTime or Date now?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bhagavath Singh&lt;BR /&gt;Platform Engineer&lt;BR /&gt;Johnson and Johnson&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2022 19:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79021#M30980</guid>
      <dc:creator>bhagavathsinghjnj</dc:creator>
      <dc:date>2022-08-24T19:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79022#M30981</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/46977"&gt;@bhagavathsinghjnj&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I've tested on v7.1 with a environment variable of type Date and I was able to successfully set the value using AutomateC. However, what I noticed is the updated value wasn't reflected in the Interactive Client UI until I exited and logged back in. For Date, pay attention to the format I used below. That's the only way I could get it accept it:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18676.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18825iC993FA0D3B47BBE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="18676.png" alt="18676.png" /&gt;&lt;/span&gt;​&lt;BR /&gt;** EDIT **&lt;BR /&gt;DateTime also works in the following format:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;C:\Program Files\Blue Prism Limited\Blue Prism Automate&amp;gt;automatec /user admin [PASSWORD] /setev Test1 DateTime "2022-08-24 12:54:31" Test​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2022 21:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79022#M30981</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-08-24T21:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Is there a way to update an Environmental Variable in Blue Prism?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79023#M30982</link>
      <description>&lt;P&gt;Try to do it directly if it is possible. Login into the database which you use or the BP server uses (Look for VBO and set it up e.g. with Data – SQL Server / or similar C# code etc.). After you get the access to your BP database:&lt;/P&gt;
&lt;P&gt;Execute&lt;/P&gt;
&lt;P&gt;UPDATE [YOUR_BP_DBname].[dbo].[BPAEnvironmentVar]&lt;/P&gt;
&lt;P&gt;SET value='YourNewValue'&lt;/P&gt;
&lt;P&gt;WHERE name='NameOfYourEnviromentalVar'&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Frantisek Hortai&lt;BR /&gt;Senior Consultant&lt;BR /&gt;EY - Ernst &amp;amp; Young&lt;BR /&gt;Europe/Vienna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Aug 2022 14:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Is-there-a-way-to-update-an-Environmental-Variable-in-Blue-Prism/m-p/79023#M30982</guid>
      <dc:creator>FrantisekHortai</dc:creator>
      <dc:date>2022-08-25T14:51:00Z</dc:date>
    </item>
  </channel>
</rss>

