0
My goal is to get All fields in result when I call GetItemsByListingReport.
I try to set ItemOptions in order to get all Fields defined in my report.
When I set fixedFields=false and when fields is populated with all fields, it's ok, I get all Fields in the result.
But In an other case I don't know Fields used in my report, so as I read in the JSON API Guide document I set fixedFields=false and fields empty.
Unfortunately when I post with these itemOpions, it doesn't work, Fieds is really empty instead of getting all Fields.

How can I get all fields used in my Report without setting them in itemOptions fields property ?

Best regards,

Olivier

Accepted Answer

Wednesday, August 09 2017, 11:52 AM - #Permalink
0
Olivier,

This is basically what my post looks like and it returns all the fields defined in my report.

  "method": "POST",
"headers": {
"alfssoauthntoken": "PHNhbWw.........4=",
"content-type": "application/json",
"cache-control": "no-cache",
"postman-token": "43f59c22-2e6b-0fd4-1ca7-ab404d5a1ce8"
},
"data": "{fixedFields: false}"
  • Olivier Cognye
    one week ago
    Hi Brian,
    thank you for your screenshot... I realize my mistake, I set fixeFields instead of fixedFields property !
    So setting the good property works fine as expected.
The reply is currently minimized Show
Responses (2)
  • Accepted Answer

    Friday, August 04 2017, 12:38 PM - #Permalink
    0
    What happens if you leave itemOptions alone, as in don't include it? The options should be geared towards limiting the response so if you don't want to put in a limit I believe you should just not include it.
    • Olivier Cognye
      one week ago
      Hi,
      By Default, without setting itemOptions, I only have System fields in results so in my case "TITLE" and "LASTMODIFIEDDATE". The only way to get all my fields is to put them into itemOptions fields property.

      So is there a specific way to get all fields defined in report without setting them into itemOptions ?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 07 2017, 04:15 AM - #Permalink
    0
    Hi,
    By Default, without setting itemOptions, I only have System fields in results so in my case "TITLE" and "LASTMODIFIEDDATE". The only way to get all my fields is to put them into itemOptions fields property.

    So is there a specific way to get all fields defined in report without setting them into itemOptions ?
    The reply is currently minimized Show
Your Reply