I have an unlocked package that adds custom fields to the Contact object. Some of these fields need to be made read-only. In my scratch org, I have modified the Salesforce Standard User profile to make the field read-only, but

sfdx force:source:status

does not detect these changes. Here're my settings: Field accessibility settings Field access settings

As shown above is it possible to package either of the above in an unlocked package:

  1. Field-level security settings for the Salesforce standard user for a custom field
  2. Appending a custom field to a prepackaged page layout in Salesforce.
  • Yes its possible to have it in the package. Please try to fetch the xml from workbench and update the layout and fields xmls. – Ysr Shk Sep 4 '20 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.