When fetching discussions for a row, there is an option to fetch the comments associated with each discussion and the attachments for each comment. There is a bug in the SDK that is preventing the attachments for comments from being returned if the user specifies paging parameters.
This is happening because, when building the URL path to retrieve the list of discussions, if we specify both include parameters and pagination parameters, the resulting path has two "?" characters:
Summary
When fetching discussions for a row, there is an option to fetch the comments associated with each discussion and the attachments for each comment. There is a bug in the SDK that is preventing the attachments for comments from being returned if the user specifies paging parameters.
This is happening because, when building the URL path to retrieve the list of discussions, if we specify both include parameters and pagination parameters, the resulting path has two "?" characters:
When this happens, the Smartsheet API will ignore the
include
parameter and only take into account theincludeAll
parameter.In this PR we are making sure that when both pagination parameters and include parameters are specified, the resulting path is built correctly: