New answers tagged

0 votes

How can I delete picklist values via the metadata API?

It's not possible. You can update the picklist value set, which can deactivate picklist values, but you cannot delete them with the metadata api. See a more detailed answer here: Deleting specific ...
aaronbauman's user avatar
0 votes

Extracting Metadata for Contact Role on Account

The new approach (API version 38.0 and later) to get/deploy this metadata is: <types> <members>AccountContactMultiRoles</members> <name>StandardValueSet</name> &...
Olavo Alexandrino's user avatar
0 votes

SFDX deploy , item not found in zipped directory

In my case this was problem that our consultant put profile metadata in Metadata API format while for SFDX project metadata is expected in SFDX format. So changing the file name from Internal User....
Patlatus's user avatar
  • 16.4k
1 vote

Creating/updating NamedCredential from Apex

On v59.0, Salesforce has added some nice methods to work with Named Credentials / External Credentials without the need of installing apex-mdapi. You can find some usage examples here, and the ...
Alberto's user avatar
  • 51
0 votes

Get All the Reports Metadata Backup

You can use Package builder to build package.xml file of your org metadata. Once you have full metadata you can copy list of all reports something like below. <?xml version="1.0" encoding=...
Vinay's user avatar
  • 3,240
0 votes

fieldPermissions is null in the PermissionSet instance

API Name of the permission set should be used instead of name: MetadataService.MetadataPort service = new MetadataService.MetadataPort(); service.SessionHeader = new MetadataService....
वरुण's user avatar
1 vote

Get All the Reports Metadata Backup

Using VSCode with the Org connection established, you may navigate to Reports -> Select Folder you want to backup -> Click on the Download icon next to specific Reports Folder and Report. ...
Roman S.'s user avatar

Top 50 recent answers are included