How to set password of a user using 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
Query specific object permission for all Profiles
Method 1 Method 2
How to access Compound field values in Apex Salesforce
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 »
How to check Person Account is enabled in Salesforce org or not using Apex
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
UNKNOWN_EXCEPTION:portal users cannot own partner accounts
ERROR DESCRIPTION WORKAROUND Follow us on LinkedIn: Click here
How to Query External Object in Salesforce?
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
How can we share Task with Partner user in Salesforce
REQUIREMENT We need to setup partner community so that multiple users belongs to same account can see each other’s Tasks. In other way, if partner user has access to parent related record then he must be able to access the related Tasks whether he is owner of Task or not. By default, user who owns …
How can we share Task with Partner user in Salesforce Read More »
How to add field on Product selection screen in Salesforce
Question How do I customise the columns that appear in the Add Products popup which appears if you click the Add Products button on the Products related list on the Opportunities record page? What you’ve tried so far but it does not work: You might have tried below solution, but it won’t work actually. SOLUTION Follow given steps :
Allow Guest Users to log a Case using Salesforce Site/Experience Cloud
DESCRIPTION If you have enabled Contact Support page in community but when guest user tries to access it throws error or redirect to login experience. CHECKLIST There are following things we need to verify in order to make it working.