• Rescian Rey 5
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
ListMetadataQuery query = new ListMetadataQuery();

 query.type = "ApexClass";

 double asOfVersion = 23.0;

 // Assume that the SOAP binding has already been established.

 FileProperties[] lmr = metadataService.listMetadata( new ListMetadataQuery[] { query }, asOfVersion);

if (lmr != null)
{
  foreach(FileProperties n in lmr)
{
  string filename = n.fileName;
}
}


 I m using this code to get list of Apex classes.

I want list of folders for //***query.type = "EmailTemplate";***// component type.

Is it possible using listMetadata() method or any other way to achieve this?

please reply asap.

thanks in advance.
  • February 13, 2012
  • Like
  • 0