I am trying to get a list of workflows created over several objects through Metadata API.
When i call the readMetadata() of MetadataService class, I got this exception:
System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element fullName
During debugging i found out that several of these objects have FlowTriggers set up for them.When i removed those FlowTriggers it started working again.
i'm invoking the readMetadata() as follows:
MetadataService.ReadWorkflowResult result = (MetadataService.ReadWorkflowResult)service.readMetadata('Workflow',objectNames);
As the things are set up its hard for me to change the type to any other value. So the Metadata API even support the flow triggers or is there any workaround of this issue??