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
visualforce_devvisualforce_dev 

Retrieve all metadata via java code,Urgent!

Hi all,

 

Can I get all metadata using partner wsdl.. 

 

Right now I am able to retrieve object name and field name.

 

I want to retrieve all validation rules, workflow rules etc associated with some particular object or in common

 

If it is not possible using partner and we have to use retrieve function in metadata API, can anyone help on how to do it..

 

Sample code will be of grt help!!

 

Regards

 

SuperfellSuperfell
You'll need to use the metadata API, there should be samples in the metadata api docs.
visualforce_devvisualforce_dev

Hi Simon,

 

Thanks for your reply, our requirement is to get all components related to some particular object, for eg

if we give Account, it should retrieve all validation rules(rule name,criteria, error message), record type etc etc,Related to account, same with custom object,,

 

we tried with 'retrieve' function in metadata API.. The sample code there to retrieve components into a zip file.

and we are able to create the zip file.,

Is there any other method like 'describeobject' to do this, if so can you please provide some simple sample code to start with..

 

input : object name,

output : fields, validation rule, workflow rules etc related to it..

 

Thanks in advance

Message Edited by visualforce_dev on 03-18-2009 05:16 AM
ShikibuShikibu

FYI, not all metadata is retrievable. Worse, there's no official list of what data cannot be retrieved (only its complement, what data can be retrieved, listed in the Metadata API docs).

 

We asked our support rep about this, because missing data means that releases cannot be completely automated. Here's the advice he offered:

 

Here's our prioritized list of missing metadata we know customers want:

  1. ActionOverride (planned for 160)
  2. Standard picklist fields (custom picklist fields on standard object works, but not standard picklists) (coming in 160)
  3. Listviews on standard objects
  4. Search Layouts on standard objects
  5. Approval Processes
  6. Role Hierarchies
  7. Territory Assignment Rules
  8. Sharing Rules
  9. Weblinks on PersonAccount Layouts
  10. Queues

 


There are likely much more missing metadata. Here are some suggestions, just to give you an idea of the potential scope:

    * Public and Resource Calendars
    * Activity Settings
    * Campaign Influence
    * Account Partner Roles
    * Account Contact Roles
    * Account Teams
    * Lead Assignment Rules
    * Lead Settings
    * Web-to-Lead
    * Lead Processes
    * Web-2-Lead Auto-Response
    * Opportunity Contact Roles
    * Opportunity Competitors
    * Opportunity Sales Processes
    * Opportunity Big Deal Alert
    * Sales Team and Account Team Roles
    * Opportunity Update Reminders
    * Opportunity Settings
    * Forecasts
    * Case Contact Roles
    * Case Assignment Rules
    * Case Escalation Rules
    * Support Processes
    * Support Settings
    * Support Auto-Response Rules
    * Email-to-Case
    * Case Team Roles
    * Predefined Case Teams
    * Self-Service Public Knowledge Base
    * Self-Service Web-to-Case
    * Self-Service Portal Settings
    * Self-Service Portal Users
    * Self-Service Portal Font and Colors
    * Call Center (anything not covered by "standard custom stuff")
    * Contracts Settings
    * Solution Categories
    * Solution Processes
    * Solution Settings
    * Product Schedule Setup
    * Product Settings
    * Partner Management?
    * Salesforce to Salesforce
    * Ideas Comment Validation Rule
    * Ideas Communities
    * Ideas Settings
    * Console Layouts
    * Tags Settings
    * Search Settings
    * User Interface Settings

Org-level metadata

    * Public Groups
    * Fiscal Year
    * Business Hours
    * Organization Wide Defaults
    * Sharing Rules (also listed above)
    * Delegated Administration
    * HTML Document and Attachment Setttings
    * Mail Merge Templates?
    * Mobile Administration
    * Mobile Users and Devices
    * Offline Briefcase Configurations
    * Email Bounce Administration

Probably not relevant as metadata:

    * Password Policies
    * Session Settings
    * Single Sign-on Settings
    * Network Access
    * Remote Site Settings
    * Compliance BCC Email
    * Email to Salesforce
    * Google Apps Settings

 

Message Edited by Shikibu on 03-29-2009 12:43 PM