locked
HealthRecordFilter RRS feed

  • Question

  • I want to get (date wise) the most recent record for weight data. What filter do I use?

    HealthRecordFilter filter = new HealthRecordFilter(typeId);
    filter.???

    Thanks.
    Tuesday, June 9, 2009 12:47 AM

Answers

  • HealthVault always returns items in reverse chronological order ... so if you just limit your request to one item:

         filter.MaxItemsReturned = 1;

    You'll get the most recent one.

    Hope that helps!
    ---S

    Tuesday, June 9, 2009 5:00 AM