How to Use Invoke Code

activities
invoke_code

#1

I have created two Variables A and B which will input numbers to add and passed these values as initial values in two arguments variables intFirst and intSecond
Now using invoke command I have put the below mentioned in the code section

Dim Result As Integer
Result= intFirst + intSecond

How do I get the value of result back in flow to display the value contained in result?


Invoke code
How to create a user defined function in invoke code
#2

Hi @Awadhesh.singh
Check this please
out_argument.xaml (5.3 KB)


#3

Thanks a lot Ovi this is what I was looking for.


#4

This solution always give me the attached error.


#5

Hi @DhananjayR

Do you have the V7 Compatibility Pack installed?


#6

Hi, yes, V7 compatibility pack is installed already.


#7

What version are you using? InvokeCode is available from 2017.1.


#8

Hi Andrzej,
the version is 2017.1 only.


#9

hi,

Please refer below,

Thanks,
Karthik.