Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
Does anybody know a way to find the layout names per an sObject.
I have looked at describeLayout but that gives you everything but the name - very weird.
Thanks,
Kos
To answer my own question:
After contacting a salesforce representative the soliution is to use the metadata API. In C#.Net it looks something like:
ListMetadataQuery query = new ListMetadataQuery(); query.Type = "Layout"; ListMetadataQuery[] queries = new ListMetadataQuery[] {query}; MetadataService service = new MetadataService(); FileProperties [] fileProps = service.listMetadata(queries,21.0); foreach(FileProperties prop in fileProps) { int dashIndex = fileProp.fullName.IndexOf("-"); string sObjName = fileProp.fullName.substring(0,dashInde x); string layoutName = fileProp.fullName.substrign(dashIndex + 1); string layoutId = fileProp.id; }
There's no 'MetadataService' object in my wsdl, what did I do wrong?
To answer my own question:
After contacting a salesforce representative the soliution is to use the metadata API. In C#.Net it looks something like:
Kos
All Answers
To answer my own question:
After contacting a salesforce representative the soliution is to use the metadata API. In C#.Net it looks something like:
Kos
There's no 'MetadataService' object in my wsdl, what did I do wrong?