Posts

Showing posts from September, 2024

Salesforce Fact #875 | Checking custom metadata access in PS

Suppose we need to find out which all permission sets have a particular custom metadata access enabled. For this, first we need to find out the object Id of the custom metadata and using that object id we can get the list of permission sets. In this example, first we are getting the object id of the custom metadata. This can be obtained either from the url or by querying the CustomObject as below: SELECT Id FROM CustomObject WHERE DeveloperName='Parent_Metadata' Next, we query on SetupEntityAccess like below: SELECT Id, Parent.name, SetupEntityId, SetupEntityType, SystemModstamp FROM SetupEntityAccess WHERE parent.isownedbyprofile=False AND SetupEntityId IN ('01I6F000003cdLBUAY')

Salesforce Fact #874 | Assigning Labels to records

As part of the latest release, we can now assign labels to individual records. This is pretty helpful in maitaining a categorization of multiple related records. The Sobject for Label is UserDefinedLabel and the assignments to records are tracked using UserDefinedLabelAssignment Sobject. In order to assign labels, the user needs to have access to Label object. Further details:  https://help.salesforce.com/s/articleView?id=release-notes.rn_sales_features_core_record_labels.htm&release=250&type=5

Salesforce Fact #873 | Exploring screen flow action button(Beta)

Image
With Summer'24 release, we can now access the screen flow action button feature as a Beta feature. As a use case, we know that capitalizing text does not work properly with screen flow reactivity. We can make use of a subflow which takes a string as input and returns the capitalized version. In this example, we are calling the subflow from a action button and the returned text is also set on the actual input with the help of formula resource 'InputDisplayValue'. Attached are the screenshots.