In the Microsoft Graph document,
The destination folder ID, or the Inbox, Drafts,
SentItems, or DeletedItems well-known folder name.
For destinationId, is there a special name for junk/spam folder? I tried
Junk, JunkItems, Spam, SpamItems, but neither works.
POST /me/messages/{mailId}/move
{
destinationId: 'Junk'
}
Destination Id for Junk Email folder is JunkEmail.
For a more complete list, refer to WellKnownFolderName enumeration MSDN page.
Related
In vs2013/tfs using Find by Status works for "Display all checked out" but not when I type in a user for "Display files checked out to:".
I type the user name exactly (including case) as it appears in the returned list for the all search but the user specific search always returns: No items found.
Have you tried typing the internal name (not the person's full name) i.e. include the user's domain? E.g. COMPANY/johns instead of John Smith?
When i want to create the onGet event code for a calculated attribute the proposed destination folder is "methods" where it should be "model" as described in the on-line documentation;
Strange enough, both files "<..>.events.js" and "<..>.methods.js" already exist under the model/<..> folders (where <..> stands for each datastore class in my model) but seem to be ignored by Wakanda Studio.
I did not find where i could change that destination.
Is it possible and where?
<..>-events.js and <..>-methods.js are recognized by model only when they are included in model.js, which can be found next to model.
Do you see code like this in model.js?
include("./methods/<..>/<..>-events.js");
include("./methods/<..>/<..>-methods.js");
I use Folder.WellKnownFolderName to detect folder type, but it was introduced only in Exchange 2013. Also it doesn't work with "Clutter" folder. Can i use another Folder property to determinate exchange folder type?
Take a look at the FolderClass property. That tells you the type of folder (Mail, Calendar, etc.).
Iterate through all the WellKnownFolderNames you care about, and fetch the corresponding Folders individually by passing Folder.Bind a FolderId created with the constructor that takes a WellKnownFolderName. The FolderId of the returned Folder will have its unique ID set. Then just keep track of the FolderId-to-WellKnownFolderName mapping.
My application saves the StoreID and EntryID of an Exchange Shared Folder to subsequently determine if two users have selected the same Exchange Shared Folder.
For the same Shared Folder, the Exchange users are given StoreIDs that, when decoded as a hex string, looks like this:
?8¡»å¡»+*VÂEMSMDB.DLLƒªf͛Ȫ/ÄZDC/o=TEST/ou=first administrative group/cn=Recipients/cn=UserA
?8¡»å¡»+*VÂEMSMDB.DLLƒªf͛Ȫ/ÄZDC/o=TEST/ou=first administrative group/cn=Recipients/cn=UserB
I would expect CompareEntryIDs() to return true when given the two different EntryIDs, as they refer to the same Shared Folder, but instead it is returning false.
Any ideas as to why CompareEntryIDs() is unexpectedly returning false?
Well, the first entry id is for userA, the second one is for userB. So they are different.
I want to retrieve all the files from a specific folder. Below code gives me all the files in my drive account.
$files = $service->files->listFiles($parameters);
Is there a way to query only a specific folder name?
I see that you are implementing with PHP. You can refer to the 'Children' resource, using the list method to show all the children within the folder you are looking for. Keep in mind that you will need the folder's id in order to list its content.
The code should be something like:
$children = $service->children->listChildren($folderId, $parameters);
You can find more information about this on: https://developers.google.com/drive/v2/reference/children/list