Questions tagged [mdapi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

Deployment to Production Org using VS Code

I need one help to deploy different components like classes, triggers, objects, profiles, permission sets, etc from sandbox to the production org. I used following command to deploy all the items on ...
2
votes
1answer
45 views

Deploy only modified metadata in GitLab to Org

I followed this Trailhead "Build an Automated CI/CD Pipeline with GitLab" and have successfully built a pipeline that can deploy [or install] a package into an Org each time I push some changes into ...
0
votes
0answers
41 views

Getting null values when retrieving Flows via Apex Metadata API

When attempting to retrieve Flow-specific data via the Apex Metadata API each value in the key-value pairs is null. Here is the code: private static void getFlowMetadata(Double apiVersion, ...
0
votes
0answers
32 views

force:mdapi:convert command fails when source has a utility js file

I'm trying to follow the SFDX Developer Guide to convert an unlocked package to SFDX source format I'm receiving the following error: $ sfdx force:mdapi:convert --rootdir mdapipkg --outputdir ...
0
votes
0answers
29 views

Error deploying to Packaging Org: force:mdapi:deploy - “An unknown exception has occurred.”

We deleted a managed Apex Class and then started getting a "An unknown exception has occurred." during the force:mdapi:deploy process. We then restored this deleted Apex Class, but the "An unknown ...
0
votes
1answer
110 views

Push source to scratch org fails but mdapi:deploy works

I am in the process of converting an existing Managed Package to Salesforce DX and Retrieved the Metadata from the packaging org Converted it to Source format Created a scratch org and pushed source ...
2
votes
2answers
306 views

How to retrieve Custom Profiles' objectpermissions using SFDX or MDAPI

Problem The <objectPermissions> tags are missing from my custom profiles when I pull from a scratch-org using SFDX or MDAPI. Steps to reproduce Create a new Scrach-org. Create a custom ...
2
votes
1answer
635 views

Can I retrieve an Email Alert via the Ant Migration Tool?

I wanted to retrieve an Email Alert via the Ant Migration Tool. However, I could not find it in a Metadata Types Reference. I suppose it's hidden under some other name like many other SF Metadata ...
1
vote
1answer
99 views

sfdx mdapi --wait parameter not working?

Followed a module in trailhead and when i got to the part where i was needed to deploy my work using this command sfdx force:mdapi:deploy -d mdapioutput -u MyTP -w 10 it throws an error. saying: ...
4
votes
1answer
383 views

SFDX development 'without ScratchOrg and Unlocked Packages' with Git [closed]

I think that the first reaction that anyone will have after reading my question will be 'Why do you want to move to DX without using ScratchOrgs and Unlocked Packages'? Well, we are planning to use ...
2
votes
1answer
222 views

Does exist an option to validate deploy without saving in sfdx for metadata that aren't in the Metadata API format?

With sfdx is possible to deploy metadata to orgs that don't have source tracking, such as sandoboxes, either with sfdx force:source:deploy or sfdx force:mdapi:deploy. The first one uses metadata in ...
0
votes
1answer
57 views

How to uninstall apex-mdapi package

A while back, I installed mdapi (https://github.com/financialforcedev/apex-mdapi) from github using the 'Deploy to Salesforce' button. We no longer need it, and it is taking up a lot of room in our ...
3
votes
0answers
94 views

Is it possible to remove components from a Change Set using the Metadata API?

I'm using a trick that was mentioned in this related question to programmatically add elements to a Change Set using the Salesforce Metadata API. Basically, you treat the name of the Change Set as ...
2
votes
2answers
411 views

How to list all the metadata that is changed after a given date

how to get all the metadata changes after a given date. Tried using metadata api's listMetadata(), this gives all the data and here we can't filter using dates. This will run into limits for reports ...
6
votes
1answer
336 views

Can OWD be imported/exported as metadata?

I'm currently trying to create a scratch org which reflects our ludicrously complicated production org which contains hundreds of Roles. Upon deploying most of these, I get errors like: Error src/...
2
votes
1answer
239 views

force:mdapi:convert duplicate files

I've been trying to commit to having version control in our org, and I have been using DX to do so. My biggest complaint right now is that I end up having a ton of .dup files. And I don't know of the ...
0
votes
1answer
226 views

FIELD_INTEGRITY_EXCEPTION when trying to update/create metadata records in managed package

We are using mdapi to create/update metadata records in a managed package. Everything works fine in the packaging as well as any other developer orgs. However, when we install the beta package in a ...
0
votes
1answer
454 views

Error deploying mdapi to packaging org with a namespace

I had a SFDX project which I converted to follow the "sfdx-falcon-template" structure. I also created a packaging org that would be used as a base for my managed package. Next I created a namespace ...