Salesforce

Salesforce

Simple Custom Lightning Template

Sample Code: Component: <aura:component implements="lightning:recordHomeTemplate">              <aura:attribute name = "left" type = "Aura.Component[]" />       <aura:attribute name = "middle" type = "Aura.Component[]" />       <aura:attribute name = "right" type = "Aura.Component[]" />              <div>                      <lightning:layout >                              <lightning:layoutItem size = "2">                                      {!v.left}                                  </lightning:layoutItem>                              <lightning:layoutItem size = "5">                                      {!v.middle}                                  </lightning:layoutItem>                              <lightning:layoutItem size = "5">                                      {!v.right}                                  </lightning:layoutItem>   ....

Salesforce

How to find profile permissions for objects in Salesforce?

Sample SOQL: SELECT Parent.Profile.Name, sObjectType, PermissionsCreate, PermissionsRead, PermissionsEdit, PermissionsDelete, PermissionsModifyAllRecords,           PermissionsViewAllRecords      FROM ObjectPermissions     WHERE ParentId IN ( SELECT Id                           FROM permissionset                                              WHERE PermissionSet.Profile.Name IN ( 'System Administrator', 'Read Only' ) ) ORDER BY sObjectType, Parent.Profile.Name   The above SOQL will give profile name, object name, create access, read access, edit access, delete access, modify all access and view ....