I have configured a Salesforce Connect relationship to an external data source using a custom Apex adapter. I am trying to configure one of the external objects to allow search.
I have selected the "Allow Search" checkbox on the external object and have created a tab for the external object. The profile I'm using has read access for the object.
Firstly, the external object is not appearing in the available objects for results.
Secondly, when I run a SOSL query against the external object in the developer console, I receive the error
entity type <External Object> does not support search. Do I need to do anything beyond checking "Allow Search" on the external object?
Additionally, when I navigate to the external data source and select "Validate and Sync", the "Allow Search" setting stays checked. When I then click "Sync", the external object has the "Allow Search" setting unchecked. I am not seeing anythng in the documentation for
DataSource.Column that allows for explicitly specifying that an external object should allow search. In my DataSource.Connection class, I have a
search method defined.
DataSource.Table documentation: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_DataSource_Table.htm
DataSource.Column documentation: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_DataSource_Column.htm#apex_class_DataSource_Column