31-01-23 05:21 PM
Hi All,
I need to call diferente VBO Actions dinamically, can I do it by a code stage? Something like the code below, sugested by chatGPT? (can't put this code to work beacause don't know how to declare (using BluePrismAPI
and witch dll to import)
Where can I found some documentation about BluePrismAPI / BPObject class?
Thanks for your help!
using BluePrismAPI;
//Create a reference to the Blue Prism API
BPObject bpObject = new BPObject();
//Connect to the Blue Prism environment
bpObject.Connect(@"localhost");
//Start the object – PS: Process name should be action name???
bpObject.Start("Object Name", "Process Name");
//Pass data to the object as inputs
bpObject.Set("Input Name", "Input Value");
//Execute the object
bpObject.Execute();
//Get the output from the object
string output = bpObject.Get("Output Name").ToString();
//Disconnect from the Blue Prism environment
bpObject.Disconnect();
01-02-23 06:13 AM
02-02-23 10:20 AM
02-02-23 11:38 AM
02-02-23 03:48 PM
02-04-24 12:00 AM
Hi @antonio-r-melo - Did you find a solution for your usecase ? I have similar scenario where I want to call 50 actions depending on a input parameter but I do not want code all 50 scenarios using a decision box.. instead I want to maintain a collection with 50 action names ("object name" and "action") and pass it as an input to one action which can call the required actions, which will reduce the coding efforts significantly. Would you appreciate if you can respond.
Thank you in advance !