6

Is there any drawback on using Metadata API through REST (that became available since Winter'19)? I only see good things such as:

  • Smaller payloads: probably improving performance reducing the network traffic.
  • A bigger amount of deployment bundle: the .zip file size limit of 39 MB .zip that applies to SOAP deployments.

However, based on some amazing previous answers here and the Salesforce DX Developer Guide, I noticed that SFDX CLI still defaults to SOAP.

I don't even understand REST is not becoming the default option in SFDX CLI.

  • 1
    I asked about it on social media. When I get a response, I'll circle back around. – sfdcfox May 27 at 18:10
  • 1
    With the majority of the payload being composed of the ZIP files that metadata API uses I'd be surprised if you see any meaningful difference in performance related to request/response size. The more important part would be compressing the request and accepting a compressed response. – Daniel Ballinger May 27 at 19:37
1

I got the response in the form of a Tweet:

That is correct. We have data command updates, including this on our roadmap for the end of this year.

In other words, the DX team simply hasn't gotten to it yet. Obviously, Safe Harbor applies, but this should be pretty trivial, I imagine, since it already works with the flag.

| improve this answer | |
  • Thanks a million Brian, especially for going the extra mile here. I agree, it sounds trivial, I guess they might just trying to be on the safe side. – Jeferson Chaves Jun 3 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.