locked
MSCRM 2013 Retreive Post Text RRS feed

  • Question

  • I have a requirement where I have to retrieve Post entity record's text and use the string retrieved.The Post.Text attribute value comes in the below format :

     <?xml version="1.0" encoding="utf-16" ?> 
    - <pi id="CaseAssign.Post" icon="0">
    - <ps>
      <p type="1" otc="112" id="44b53e40-a775-e411-80c1-000c2908bc67">2014-0222265</p> 
      <p type="1" otc="8" id="5a5661ed-6763-e411-80be-000c2908bc67">ABCD</p> 
      <p type="1" otc="8" id="8d131321-6863-e411-80be-000c2908bc67">EFGH</p> 
      </ps>
      </pi>
    

    The actual text should be as follows which is shown in the Post wall "2014-0222265 was assigned to ABCD by EFGH". Parsing XML to string is also of no help.Any guesses as to how this can be done? The issue occurs for Post records of Source Auto and not manual since manual posts do not have the text in XML format.Any help on this?

    Wednesday, November 26, 2014 9:19 PM

All replies

  • I don't think there's any documentation on how to parse this. Do you get the same xml if you use a RetrieveRecordWallRequest to get the post data ?

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, November 27, 2014 11:55 AM
    Moderator
  • Thanks for the reply.I did an advanced find retreiving all the Post Data where source type is Auto and included the Text column in the results and it gives me the same xml format.For manual posts the format is not xml.This XML format is being derived from the Post Configuration(Rule ID) of the related entity(case in this scenario).I digged more and found that the Rule Source is a resx file which is web resource.But we cannot access it from the default solution.Any suggestions since I really don't want to hard code my stuff?
    • Edited by BPC2013 Thursday, November 27, 2014 12:19 PM
    Thursday, November 27, 2014 12:18 PM