This blog contains some of the Salesforce facts which I have found quite interesting. Happy learning.
Salesforce Fact #545 | $UserRole in formula
Get link
Facebook
X
Pinterest
Email
Other Apps
We can use $UserRole global variable in formula field and validation rule to get the role of the current user, Similar to flow. However, the 'ParentRoleId' field is not accessible in formula.
I searched for the importance of the Salesforce Management system. Thanks, admin, for sharing such wonderful content on this topic. Now I have got everything I need about it.
We can also pass custom apex-defined variable from flow to LWC. In this case, we have to define the property type as apex://namespace.Classname and expose the same variable as @api. Attached are the screenshots.
Suppose we have a scenario where we have a single select datatable in LWC. There is a field which is editable but it should be editable only for the selected row, for rest of the rows it would be read-only. We can implement the same with a bit of logic of JS. Attached are the screenshots.
We can pass list of Sobject records from LWC to flow as well. We need to define the list variable with @api to denote and expose as a public property in the flow. The meta file configuration remains the same i.e. define the property as @salesforce/schema/<SobjectApiName>[]. Attached are the screenshots.
I searched for the importance of the Salesforce Management system. Thanks, admin, for sharing such wonderful content on this topic. Now I have got everything I need about it.
ReplyDelete