You need to sign in to do that
Don't have an account?
Extracting Existing Validatin/Workflow Rules and in Java
HI,
I want to fetch validation/workflow rules metadata existing in the org using java application. I am able to fetch a particular component in the org e.g. ValidationRule, Workflow etc using ListMetadataQuery object.
here is the code snippet to fetch component.
String sComponent = "ValidationRule"; ListMetadataQuery query = new ListMetadataQuery(null, sComponent); FileProperties[] fieFps = metadata_binding.listMetadata(new ListMetadataQuery[] {query});
for(FileProperties fp :fieFps){
logger.debug("Here : " + fp.getFullName());
}
In this way i get only the name of the rule but not the other attributes like (active, errorConditionFormula, errorMessage).
How can i fetch the other attributes of the component, in other words, how can i fetch the component as a particular object.
Any help is appreciated.
Thanks
Ajit