Skip to content
Christian G. Warden edited this page May 20, 2022 · 8 revisions

Turn off field history tracking for all fields:

$ 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

Update profiles with new field permissions added in an org:

# 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/{/} {}'
Clone this wiki locally