12-11-20 09:00 AM
Background Info
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).
Simulation
Let's say we use StartDate = 02/11/2020 and EndDate = 06/11/2020. Data has been found so we can say that the process ran successfully on 07/11/2020.
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.
Unsuccessful runs are being catched.
Question Is there a way to store the last successful run into the environmental variable StartDate ?
--------------------------------------------------13-11-20 02:50 PM
13-11-20 03:00 PM
13-11-20 05:38 PM
13-11-20 05:39 PM
24-08-22 08:07 PM
24-08-22 10:01 PM
C:\Program Files\Blue Prism Limited\Blue Prism Automate>automatec /user admin [PASSWORD] /setev Test1 DateTime "2022-08-24 12:54:31" Test
25-08-22 03:51 PM
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:
Execute
UPDATE [YOUR_BP_DBname].[dbo].[BPAEnvironmentVar]
SET value='YourNewValue'
WHERE name='NameOfYourEnviromentalVar'