Find the answer to your question
How do I retrieve a list of available folders and thier id's for a user account?
In order to retrieve a list of available folders and their IDs for a user account, make a call to GetMyMessages with DetailLevel set to ReturnSummary.
Here a code sample from the documentation -
Email this page