Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Send notes attachment via email using Plugin

$
0
0

I have following snippet to get the attached document of notes of an Order. Now, I want to attach this document in a email using plugin. Any idea/suggestion to attach this document to email attachment.

	EntityCollection results = null;
	QueryExpression query = new QueryExpression
    {
		EntityName = "annotation",
		ColumnSet = new ColumnSet("subject", "filename", "notetext", "documentbody"),
		Criteria = new FilterExpression
		{
			Conditions = {
		new ConditionExpression {
			AttributeName ="objectid",
			Operator = ConditionOperator.Equal,
			Values = { order }
		},
		new ConditionExpression {
			AttributeName = "isdocument",
			Operator = ConditionOperator.Equal,
			Values = { true}
		}
			}
		}
    };

    results = service.RetrieveMultiple(query);



Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>