Check if folder exists in SOAP

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
vdagost-fr
Posts: 36
Joined: Mon Apr 11, 2016 11:59 am

Check if folder exists in SOAP

Postby vdagost-fr » Mon Sep 18, 2017 2:01 pm

Hello,

To check if a folder exists in SOAP I try a GetFolder request.

But each time the folder does not exist a not such folder path WARN Zimbra exception is throwed at com.zimbra.cs.mailbox.MailServiceException.NO_SUCH_FOLDER(MailServiceException.java:239).

How to nicely check for folder existence ?

Regards,
Victor


User avatar
Gren Elliot
Zimbra Employee
Zimbra Employee
Posts: 174
Joined: Tue Jun 10, 2014 4:45 am

Re: Check if folder exists in SOAP

Postby Gren Elliot » Mon Sep 18, 2017 2:49 pm

What's wrong with that? Seems pretty clear to me?
vdagost-fr
Posts: 36
Joined: Mon Apr 11, 2016 11:59 am

Re: Check if folder exists in SOAP

Postby vdagost-fr » Wed Sep 20, 2017 3:36 pm

Hi Gren

Nothing wrong but each days our soap applications generate a lot off useless warning logs.
I was wondering if there is a CheckIfFolderExists or something like that SOAP function.

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 11 guests