how can I call an action (element) from the code block (element)

ajtest1

New Member
For example it seems possible to access elements of a collection in a code block

Dim i As Integer
For i = 0 To col1.Rows.Count - 1
outText += col1.Rows.Item(i).Item("Order number")
Next i

But what if i want to do something ore complex like call an action within th

Dim i As Integer
For i = 0 To col1.Rows.Count - 1
outText = col1.Rows.Item(i).Item("Case ID")
*Call some action that i've created earlier and have the outText as an input to the action i have
Next i
 

Sachin_Kharmale

Active Member
Hi @ajtest1 ,

You can call your existing action from blue prism code stage as well you can pass parameter to action and get result back from it.
just put your action or function code in
Global Code Tab @ Initialization page of Object.
View attachment 1580362059577.png
Now you can call your function from code stage.

I hope it will help you..!
 

ajtest1

New Member
Hi @ajtest1 ,

You can call your existing action from blue prism code stage as well you can pass parameter to action and get result back from it.
just put your action or function code in
Global Code Tab @ Initialization page of Object.
View attachment 5144
Now you can call your function from code stage.


I hope it will help you..!


Oh that's interesting would it be possible to call an "Action" within that code block? For example if i have an action called "Process Order"


Sub someSub()
return "Process Order"
end Sub
 

bot1robot

Member
@ajtest1
Is it really need to call action from code ? cant we loop through collection items via for loop and place "Process Order" action inside this for loop?

Hope this helps.
 

younus

New Member
Oh that's interesting would it be possible to call an "Action" within that code block? For example if i have an action called "Process Order"


Sub someSub()
return "Process Order"
end Sub
Hi @ajtest1 ,

You can call your existing action from blue prism code stage as well you can pass parameter to action and get result back from it.
just put your action or function code in
Global Code Tab @ Initialization page of Object.
View attachment 5144
Now you can call your function from code stage.


I hope it will help you..!
Can you please share more details
 
Top