Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

mdapi-issues/mre-2gp-profile-filtering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MRE: 2GP Profile Filtering

sfdx package version create removes fieldPermissions too aggressively

Issue description

<fieldPermissions> for Event and Task are being removed from Profiles.

Reproduction

Create an unlocked package first:

sfdx package create -t Unlocked --no-namespace --path force-app -n "2GP Profile Filtering"

Now create a package version:

export SF_LOG_LEVEL="debug"
sfdx package version create -x -d force-app -w 20

See output in ~/.sf/sf.log:

The profile "Dummy Profile" from the "/path/to/project/force-app/main/default/profiles/Dummy Profile.profile-meta.xml" directory was added to this package version.
  The "Event.Event_Field__c" profile setting was removed from the "Dummy Profile" profile.
  The "Task.Task_Field__c" profile setting was removed from the "Dummy Profile" profile.

About

[RESOLVED] `sfdx package version create` removes `fieldPermissions` too aggressively https://github.com/forcedotcom/cli/issues/2278

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published