- edited description
"ConfigurationEditor" annotation modified is not recognised on @InvocableMethod
Issue #2023
resolved
The @InvocableMethod
annotation has a modifier to set custom property editor in Flow Builder. See https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_flow_custom_property_editor_action_example
IC currently marks this as an error, but it is valid e.g.
public with sharing class FlowMap {
@InvocableMethod(Label='Map a value' ConfigurationEditor='c-flow-map-editor')
public static List<String> get(List<Request> keys) {
List<String> results = new List<String>();
return results;
}
public class Request {
@InvocableVariable
public String key;
@InvocableVariable
public List<KeyValue> keyValuePairs;
}
public class KeyValue {
@InvocableVariable
public String key;
@InvocableVariable
public String value;
}
}
The annotation on line 3 is marked as an error by IC, but correct according to Salesforce.
Comments (5)
-
reporter -
repo owner Full support committed for the next build:
-
repo owner - changed status to resolved
Delivered in 2.1.9.9.
-
reporter Hooray! Thanks, Scott!
-
repo owner - removed version
Removing version: Unassigned (automated comment)
- Log in to comment