I have a task to automate a process which starts with a Smartsheet. I’m somehow new to FME. Does anyone know how can I add the Smartsheet to my workbench as a reader.
Thanks @hkingsbury. I’ve checked the two links. The first step is to executing API requests using a tool like cURL or Postman, then create an access token, then use HTTPCaller?
This would be in the _request_body property of the feature that comes out of the HTTPCaller.
There is a ‘totalPages’ attribute that tells you in this case you have a single page. If not, you should follow up with a second call to request the next page.
Then there is a ‘data’ attribute within the JSON, that you can extract with a JSONExtractor. And a JSONFragmenter to make multiple features with the properties available.
And then you can make a next request to the permalink for example to get the next step.
Is it possible to parse all the sheet just with jsonFragmenter? do you think it is correct to set the JSON Query to json["columns"][]["rows"][] and in attribute to expose enter all the columns headings?
I’m not sure if the result of HttpCaller is correct. the first when I set the format of result to json it will not change the format. The response-body has all the data of the sheet but it start with information about name of the sheet, sheet D, my level of access. is that ok?
I’ve never used SmartSheets before so unsure exactly what the API is expected to return. However looking at this:
this is a part of error I got:
Your response body seems valid and something I would expect to be returned from an API. Your JSON query isn’t valid, which will explain why its not working.