+ Start a Discussion
Adelchi PelizzoAdelchi Pelizzo 

Apex class in Flow

Is string unsupported for @InvocableMethod ?
I cannot find any doc about this.

User-added image
Prateek Singh SengarPrateek Singh Sengar
Hi Adelchi,
Invoable methods should return a list. The following are the possible return types
  • A list of a primitive data type or a list of lists of a primitive data type – the generic Object type is not supported.
  • A list of an sObject type or a list of lists of an sObject type – the generic sObject type is not supported.
  • A list of a user-defined type, containing variables of the supported types and with the InvocableVariableannotation. Create a custom global or public Apex class to implement your data type, and make sure your class contains at least one member variable with the invocable variable annotation.
Hope this helps
Prateek Singh SengarPrateek Singh Sengar
Hi Adelchi,
Can you please mark the post as solved to help anybody else who is looking for similar answer.