You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query record by RecordType.DeveloperName. To do that, you can use the byRecordType method.
🚨 If you already have a method called byRecordType in your selector, you may encounter the following issues: Non-virtual, non-abstract methods cannot be overridden: YourSelector YourSelector.byRecordType(String)
You have two options:
You can remove the byRecordType from your selector and use the predefined method from the SOQL library.
You can skip that update and still use byRecordType from your selector.
Selectors with API < 60 that are using the isIn method will encounter the following error: Method does not exist or incorrect signature: void isIn(List<String>) from the type SOQL.Filter
Salesforce has made some changes, and this update is necessary!
Iterable for with(String relationshipName, Iterable<SObjectField> fields)
Now you can pass List<SObjectField> as well as Set<SObjectField> to with(String relationshipName, Iterable<SObjectField> fields).
Code refactoring
Unused lines of code were removed. Null Coalescing Operator was applied.
This discussion was created from the release v3.2.2.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
27-March-2024
New
withFieldSet(String fieldSetName)byRecordType(String recordTypeDeveloperName)Refactoring
with(String relationshipName, Iterable<SObjectField> fields)withFieldSetPass FieldSet name to get dynamic fields. It can be very useful to have a dynamic UI.
Signature
Example
byRecordTypeQuery record by
RecordType.DeveloperName. To do that, you can use thebyRecordTypemethod.🚨 If you already have a method called
byRecordTypein your selector, you may encounter the following issues:Non-virtual, non-abstract methods cannot be overridden: YourSelector YourSelector.byRecordType(String)You have two options:
byRecordTypefrom your selector and use the predefined method from the SOQL library.byRecordTypefrom your selector.Signature
Example
API 60 Update
🚨Do not forget to update ALL selectors to API 60.
Selectors with API < 60 that are using the
isInmethod will encounter the following error:Method does not exist or incorrect signature: void isIn(List<String>) from the type SOQL.FilterSalesforce has made some changes, and this update is necessary!
Iterable for
with(String relationshipName, Iterable<SObjectField> fields)Now you can pass
List<SObjectField>as well asSet<SObjectField>towith(String relationshipName, Iterable<SObjectField> fields).Code refactoring
Unused lines of code were removed. Null Coalescing Operator was applied.
This discussion was created from the release v3.2.2.
Beta Was this translation helpful? Give feedback.
All reactions