tag:blogger.com,1999:blog-8768186835369852617.post8064928494051274345..comments2024-03-27T19:12:25.463-07:00Comments on Life and Technology: Send an Email Asynchronously in Microsoft Dynamics CRM 2011 using C# or JscriptJamie Mileyhttp://www.blogger.com/profile/16109612970870135278noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8768186835369852617.post-39346913904098403592012-03-28T08:12:42.482-07:002012-03-28T08:12:42.482-07:00Hi,
I am currenlty using the outlook-plugin to t...Hi, <br /><br />I am currenlty using the outlook-plugin to the email-send operation and not the eamil-router, but this should work with the outlook-client, right?<br /><br />The BackgroundSendEmailRequest is not listed in the "System Job" view.... <br /><br />DanielAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8768186835369852617.post-38369834855611513312012-03-28T07:30:24.211-07:002012-03-28T07:30:24.211-07:00Is your Async service running properly? can you s...Is your Async service running properly? can you see the state of the system jobs for this to make sure they ran properly?Jamie Mileyhttps://www.blogger.com/profile/16109612970870135278noreply@blogger.comtag:blogger.com,1999:blog-8768186835369852617.post-10970171478214095432012-03-28T07:19:09.912-07:002012-03-28T07:19:09.912-07:00Hi,
I create a new email, and set the filter so ...Hi, <br /><br />I create a new email, and set the filter so that only the just created email is "included" in the background-process:<br /><br />this is the code:<br /><br />var id = this.Create(subject, message, toCollection, from, regarding);<br />var backgroundRequest = new BackgroundSendEmailRequest();<br />var condition = new ConditionExpression { AttributeName = "activityid", Operator = ConditionOperator.Equal, Values = { id.ToString() } };<br /><br />backgroundRequest.Query = new QueryExpression()<br />{<br /> EntityName = Email.EntityLogicalName,<br /> ColumnSet = new ColumnSet(true),<br /> Criteria = new FilterExpression<br /> {<br /> FilterOperator = LogicalOperator.And,<br /> Conditions = { condition }<br /> }<br />};<br />this.Execute(backgroundRequest);<br /><br /><br /><br />Thanks for you help<br /><br />DanielAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8768186835369852617.post-51431273361547908782012-03-28T07:04:18.998-07:002012-03-28T07:04:18.998-07:00Did you choose criteria that you are sure picked u...Did you choose criteria that you are sure picked up actual messages. I would not expect them to be in draft. I would expect them to be sent, or if you do not have your email router configured properly I would expect them to be pending.Jamie Mileyhttps://www.blogger.com/profile/16109612970870135278noreply@blogger.comtag:blogger.com,1999:blog-8768186835369852617.post-14315265069166736442012-03-28T03:45:22.442-07:002012-03-28T03:45:22.442-07:00Hello Jamie,
thanks for sharing you code, but I ...Hello Jamie, <br /><br />thanks for sharing you code, but I have a question: Once I executed the BackgroundSendEmailRequest mail email recoreds are still in status "Draft" instead of "Completed". Do i need to exeucte some other request? <br /><br />DanielAnonymousnoreply@blogger.com