Actually I used different workflows for Get mail activity and Change subject activity. It worked fine now when i put them both in a single workflow.
But now, I’m facing a different issue. I’m getting the below error near ‘Change email subject’ activity.
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Runtime.InteropServices.COMException: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT))
at Alphabet.Outlook.AlphabetOutlookApi.RenameMessage(MailMessage message, String newSubject)
at Alphabet.Outlook.ChangeOutlookMailSubject.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Please help me with this.