Posts

Showing posts with the label RecordTypeId

Salesforce Fact #674 | It's 'recordTypeId' in LWC

Image
While passing a RecordType Id in LWC NavigationMixIn, the correct attribute is 'recordTypeId', and not 'RecordTypeId'. Reference:  https://salesforce.stackexchange.com/questions/254498/lightning-web-components-navigate-to-the-new-object-page-passing-in-specific Attached is the screenshot.

Salesforce Fact #567 | Display picklist based on record type in screen flow

Image
Now we can filter out picklist values based on record type in screen flows. We can use record variable and set the RecordTypeId field with the corresponding id and use the same record variable in the screen and the picklist values will appear accordingly. In this example, we have two record types on account: Test_RT1 & Test_RT2. The rating picklist values are respectively Hot, Warm and Cold. The same appears in the screen flow. Reference:  https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_filter_picklists_by_record_type.htm&type=5&release=240 Attached are the screenshots. Note: do not use hardcoded ids. it is only for demonstration purpose.