Method Community

 

Attribute request

Last post 09-25-2012 10:30 AM by Method_Paul. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-24-2012 4:33 PM

    Attribute request

    Is it possible to get an attribute that is a count of the number of records in the returned xml?  This would be especially helpful when the call is successful but no records are returned and no record tags are in the xml.

    Mark Crews
    Cloud Consultancy
    Principal and Developer


    • 2012 MethodCRM Partner of the Year

    • 2012 MethodCRM Community Excellence Award

    • 2011 MethodCRM Community Excellence Award


    Visit our website to find out about our training, support, and customization services.
    website: cloudconsultancyllc.com
    blog: cloudconsultancyllc.com/blog/
    ph: 434.326.1601
    e: support@cloudconsultancyllc.com

    What is Method?
  • 09-25-2012 9:42 AM In reply to

    Re: Attribute request


    Hi LaCrews

    Good suggestion...unfortunately it is not going to be done at this time. For the select XML methods you will need to check whether the MethodIntegration node has children. For the select dataset methods need need to check the row count of the first datatatable of the dataset

    Dave  

  • 09-25-2012 10:16 AM In reply to

    Re: Attribute request

    Dave

    Thanks for your reply.  We've found it easier to use LINQ to xml instead ado dataset.  As such we can easily dig out the attributes.  We can take the approach you've suggested, It'll just take a couple of extra lines code.

    Mark Crews
    Cloud Consultancy
    Principal and Developer


    • 2012 MethodCRM Partner of the Year

    • 2012 MethodCRM Community Excellence Award

    • 2011 MethodCRM Community Excellence Award


    Visit our website to find out about our training, support, and customization services.
    website: cloudconsultancyllc.com
    blog: cloudconsultancyllc.com/blog/
    ph: 434.326.1601
    e: support@cloudconsultancyllc.com

    What is Method?
  • 09-25-2012 10:30 AM In reply to

    Re: Attribute request

    (claps from our Dev team for using Linq)

    Paul

Page 1 of 1 (4 items)