Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm migrating ews managed api to Graph. When I use EWS Managed API, it has function UploadItemFts(string folderId, byte[data]).
This function to help to move a message(it has all properties) from mailbox X to mailbox Y.
public string UploadItemFts(string folderId, byte[] data)
{
try
{
UploadItem itemToUpload = new UploadItem(_service)
{
ParentFolderId = folderId,
Data = data,
CreateAction = CreateAction.CreateNew
};
var uploadItemResult = _service.UploadItem(itemToUpload);
if (uploadItemResult.Result == ServiceResult.Success)
{
return uploadItemResult.Id.UniqueId;
}
else
throw new Exception(uploadItemResult.ErrorMessage);
}
catch (ServiceResponseException srex)
{
string details = Shared.DumpServiceResponseException(srex);
XLogger.Debug(this, string.Format("ExportMessageFTS >> ServiceResponseException >> {0}", details));
throw new Exception(details);
}
}
public UploadItemsResponse UploadItem(UploadItem item)
{
//XLogger.Audit(this, AuditCategory.Exchange, CommonUtils.GetLocalIPAddress(), "UploadItem({0})".FormatString(item?.Data));
UploadItemsRequest request = new UploadItemsRequest(this, ServiceErrorHandling.ReturnErrors);
request.Items = new UploadItem[] { item };
return request.Execute()[0];
}
I don't see any graph api to support to do this. Could you guys have any recommendations?
Thanks.
Nobody know about it?