Skip to main content
I am calling a wrapper class fro visual Flow . Passing List of sobject type from the flow .

However on run time I am facing the below error :

A field wasn't found or isn't supported for Apex action controller_class : abc__c.sobjectType

I am using the below wrapper class for input , Is the custom object not allowed to call from visualflow:

 

@InvocableMethod(label = 'Invoke test')

public static List<FlowInputsRslt> invokeTest(List<FlowOutputs> request)

{

}

public class FlowOutputs

{

@InvocableVariable

public String Details;

@InvocableVariable

public List<abc__c> Rec;

}

2 respuestas
  1. 5 may 2020, 03:48
    Calling method from flow of type wrapper class with a propery of type list sobjecttype i.e List abcRec. However it fails and give the below error

    A field wasn't found or isn't supported for Apex action . In flow I am passing the variable of type abc__c with Allow multiple values (collection) enabled.

    If I replace the same with sobjecttype i.e List it works however in that case I am unable to deploy the same..

    And get the below error : (Action) - Apex action "controller class" is missing the value for type mapping "abcRec".
0/9000