¿How to use #region and #end region in invoke code?

I get the error: “the instructions are not valid in body method or lambda expressions of multiple lines”

Hi @inf_L

It might be that it is simply not supported by the activity. I hope someone more experienced could shine some light here :slight_smile:

@inf_L
Are you using them inside of a procedure? Per the docs you need to properly close the previous procedure with either End Function or End Sub (whichever is appropriate for yoru code) before you are allowed to create a region.

This error can also appear if the two directives are not in the same code block.