Need the purpose and usage or when to use the Invoke Code Activity
Sometimes it is more efficient to use code than readymade activity
This can help you.
I’ve also used invoke code when there aren’t activities that allow me what I’m trying to do.
For example, UiPath doesn’t have a for loop construct. These can be necessary when trying to iterate through items in a non-sequential or backwards order. Instead of trying to emulate one with the do while activity and a counter, I’ll throw in a quick 5-20 lines of code instead.
Note that if you find yourself invoking the same or similar piece of code, it’s better to make a custom activity for it. But for one-off situations, it’s much faster to just use the invoke code activity.