Assigning permission set to user in apex
Is it possible to assign permission setting using code? Are there any limitations to consider? YES, it’s possible as below:
Is it possible to assign permission setting using code? Are there any limitations to consider? YES, it’s possible as below:
In case if you are looking further, how to assign such permission sets to users automatically, here is answer: http://sfdcian.com/assigning-permission-set-to-user-in-apex/
NOTE method The first parameter of that function call is the actual id of the user object. User Ids start with 005 and are 15 or 18 characters long and second parameter is password string. Complex password generation TIPS
What is compound field? Compound field – for example Address and Geolocation – binds together multiple information into a single unit. Like Address is one unit of information but actually it is comprises of different primitive information like Street Address, City, State, Country & Postal Code. Can we query/access address field without addressing individual field …
How to access Compound field values in Apex Salesforce Read More »
If Person Account is enabled then there must be a field on Account object called: isPersonAccount. We simply need to check if exists as below. Method 1 METHOD 2
ERROR DESCRIPTION WORKAROUND Follow us on LinkedIn: Click here
Introduction Query on external object is supported with some limitation. Here is Salesforce help article: https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_limits.htm Sample Query SELECT Id, Name__c, OrderNumber__c FROM ExternalOrder__x WHERE Name__c LIKE ‘%Software%’ Additional Notes
If you are using Digital Engagement also called Messaging of Salesforce, you may come up with a requirement to create messaging user record automatically. Here are key fields that we need to provide while creating the messaging user. Given example is to be used in Apex but same can be used in flow: For more …
Create Messaging User for WhatsApp Channel in Salesforce Read More »
We can use tooling API to create the custom label and its translation as below. The Master label is stored in External String and translation is stored in ExternalStringLocalization Request to create master label: Endpoint Payload Response We can grab the Id of Master Label and create translation by creating a record in ExternalStringLocalization. Payload would be like this: …
Create and update custom labels using Tooling API Read More »