"ConfigurationEditor" annotation modified is not recognised on @InvocableMethod

Issue #2023 resolved
Aidan Harding created an issue

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)

  1. Log in to comment