getFields parameter to get a partial response for Tasks in 5pm API

Hi,

I'm using the 5PM API to execute SOAP requests to retrieve tasks from
my account through PHP and I saw in the schema there is a getFields
option for TaskListFilter:

from:
https://www.5pmweb.com/5pm_api.php
http://demo.5pmweb.com/api/v2/wsdl/sc...

I was wondering what format do I have to pass the getFields parameter?
I tried putting a comma-delimited string:

"name, description"

(to retrieve only the name/description fields as a partial response - instead of retrieving all fields for performance reasons),

but it returned the objects with only the ID field.

Thanks!
1 person has
this question
+1
Reply
  • We got your email and already replied to it... Repeating the reply here for the community:

    This is an undocumented feature, used on our iOS/Android apps.

    But all you have to do it list the fields separated by commas.

    Field list:

          Name
          projectID
          projectName
          Description
          startdate
          enddate
          priority
          status
          progress
          HoursDone
          hidden
          flag
          prev
          tags
          born

    Example:
    Name,Description

    We plan to extend our documentation to include such API calls.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Turns out the fields are case-sensitive since I tried "name,description" and it didn't work but "Name,Description" (title-case, worked!)

    Thanks again!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated