We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [mdapi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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
47 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 ...
1
vote
1answer
46 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 ...
0
votes
1answer
184 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
55 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: ...
3
votes
1answer
265 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
107 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
30 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
56 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
171 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
195 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
194 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
173 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
396 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 ...