function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CaffeineCaffeine 

Metadata API: retrieve() unzipped?

In the Metadata API documentation, the retrieve() example code pulls down the requested content in a zip file (which is great), but is there a way to use retrieve() and get the metadata unzipped?

 

I'm working on a Metadata tool and I want to just pull down the content and access the files the directly.

 

(I know I can unzip the files programmatically in Java, but was hoping there was a way to skip this step).

 

Thanks,

C

Best Answer chosen by Admin (Salesforce Developers) 
JonPJonP
The Metadata API only returns components as files in a zip archive.  There's no other way to get them.

All Answers

JonPJonP
The Metadata API only returns components as files in a zip archive.  There's no other way to get them.
This was selected as the best answer
CaffeineCaffeine

Thanks, Jon.  Thought it was worth a shot. 

 

Just wondering though...when the Ant Toolkit does a retrieve() how is that the files are not zipped in the directory structure?  Is salesforce's ant-lib unzipping them?

 

Thanks again.