-
Notifications
You must be signed in to change notification settings - Fork 2
Recipes
Christian G. Warden edited this page May 20, 2022
·
8 revisions
$ force-md objects fields list -k src/objects/My_Object__c.object | parallel -P1 force-md objects fields edit -K -f {} src/objects/My_Object.object
# Create a new temporary package.xml
$ force-md package new /tmp/package.xml
# Add the metadata that need to fetch to the package.xml
$ force-md package add -t CustomObject -n Account /tmp/package.xml
$ force-md package add -t Profile -n '*' /tmp/package.xml
# Retrieve the new metadata to a temporary directory
$ force fetch -x /tmp/package.xml -d new
# Merge the (Account field permissions from) new profiles into the existing profiles
ls src/profiles/* | parallel 'force-md profile merge -s new/profiles/{/} {}'