You need to sign in to do that
Don't have an account?
cfaherty
SOAP metadata retrieve() examples?
I'm posting this on the offchance that someone will find the error before I wake up tomorrow :-)
I get an error when I try to retrieve() ListView via the metadata API. It says "Element {}unpackaged invalid at this location".
Are there any SOAP retrieve() examples which I can use for comparison?
<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header><n0:SessionHeader xmlns:n0="http://soap.sforce.com/2006/04/metadata"><n0:sessionId>snipsnip</n0:sessionId></n0:SessionHeader></v:Header> <v:Body> <n1:retrieve id="o0" c:root="1" xmlns:n1="http://soap.sforce.com/2006/04/metadata"> <apiVersion i:type="d:double">21.0</apiVersion> <unpackaged i:type="n1:Package"> <types i:type="n1:PackageTypeMembers"> <members i:type="d:string">*</members> <name i:type="d:string">Contact.AllContacts</name> </types> <types i:type="n1:PackageTypeMembers"> <members i:type="d:string">*</members> <name i:type="d:string">Contact.BirthdaysThisMonth</name> </types> <types i:type="n1:PackageTypeMembers"> <members i:type="d:string">*</members> <name i:type="d:string">Contact.MyContacts</name> </types> <types i:type="n1:PackageTypeMembers"> <members i:type="d:string">*</members> <name i:type="d:string">Contact.NewLastWeek</name> </types> <types i:type="n1:PackageTypeMembers"> <members i:type="d:string">*</members> <name i:type="d:string">Contact.NewThisWeek</name> </types> <version i:type="d:string">21.0</version> </unpackaged> </n1:retrieve> </v:Body> </v:Envelope>
Hi,
From your SOAP, looks like you have misplaced "unpackaged" tag.
You can find an example of retrive() call at
http://www.salesforce.com/us/developer/docs/api_meta/index.htm
Quick Start -> Walkthrough code.
Hope this will help you.
All Answers
Hi,
From your SOAP, looks like you have misplaced "unpackaged" tag.
You can find an example of retrive() call at
http://www.salesforce.com/us/developer/docs/api_meta/index.htm
Quick Start -> Walkthrough code.
Hope this will help you.
Ok, thanks. Got it. I had left out the initial RetrieveRequest element.
Also, to request ListView it should have been like this..
And I probably could put more than one within members.
ok cool :)
Also please mark it as solved, so that it can be used by other members.