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

Send email when activity post is created.

$
0
0

I have created the plugin which triggered after a new post created on case entity.

Now there are so many cases where the post text data is in xml format. When I see the case auto post tab, it look like formatted data. I want the same data into a single string and post into an email. I searched everything but not search the right way. 

Here is my fetch xml to get the post.

 string strFetchQuery = @"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
                                      <entity name='post'>
                                        <attribute name='postid' />
                                        <attribute name='createdon' />
                                        <attribute name='createdby' />
                                        <attribute name='source' />
                                        <attribute name='modifiedon' />
                                        <attribute name='text' />
                                        <attribute name='regardingobjectid' />
                                        <filter type='and'>
                                          <condition attribute='createdon' operator='today' />
                                        </filter>
                                      </entity>
                                    </fetch>";


I already done all the part with plugin just need the best way to parse the TEXT field value into correct way.

Now the "Text" attribute using xml data. now suggest how to get the value like. below.

Test Test was assigned to Test User by Test User

text

Viewing all articles
Browse latest Browse all 55831

Trending Articles



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