Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Fetch Exchange Emails

Prev Next
Step Details
Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationIntegration > Exchange Web Services

The Fetch Exchange Emails step fetches all emails with the full email information including the body and attachments that match the string from the Search Emails step. To prevent requesting large duplicate attachments, avoid using this step repeatedly with the same Email ID.

Prerequisites 


Properties

Inputs

PropertyDescriptionData Type
Exchange ServerThe server and authentication to use.ExchangeServerDefinition
IdsAn array of email IDs to retrieve full information about, including Body and any Attachments. A common source for this array is the "Id [All Id]" property of the output of the Search Emails step.List of String

Outputs

PropertyDescriptionData Type
OutputThe list of the specified emails that were retrieved.List of ExchangeEmails


Common Errors

The Remote Server Returned an Error

If the remote server inputted is improperly inputted, the step will cause an error.

To correct this, input a URL that is properly spelled to effectively connect to the designated server.

Error Message:

DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Delete Exchange Calendar Item 1[DeleteExchangeCalendarItem] in flow [Step Library Flow]: Exception invoking method DeleteExchangeCalendarItem on class CalendarSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method DeleteExchangeCalendarItem on class CalendarSteps
 ---> System.Exception: Delete Exchange Calendar Item error. ID: 24357865648936
 ---> System.AggregateException: One or more errors occurred. (The request failed. The remote server returned an error: (403) Forbidden.)
 ---> Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. The remote server returned an error: (403) Forbidden.
 ---> System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
 at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location --- at System.Net.WebRequest.GetResponseAsync()
 at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse()
 at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
   --- End of inner exception stack trace --- at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
 at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest()
 at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecuteAsync()
 at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.ExecuteAsync()
 at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem(ItemId itemId, PropertySet propertySet)
 at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem[TItem](ItemId itemId, PropertySet propertySet)
   --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
 at System.Threading.Tasks.Task`1.get_Result()
 at Decisions.Exchange.CalendarSteps.DeleteExchangeCalendarItem(ExchangeServerDefinition ExchangeServer, String CalendarItemId)
   --- End of inner exception stack trace --- at Decisions.Exchange.CalendarSteps.DeleteExchangeCalendarItem(ExchangeServerDefinition ExchangeServer, String CalendarItemId)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
 at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   --- End of inner exception stack trace --- 


Related Information