SOTI Snap GET Entries API Issue

SOTI Snap GET Entries API Issue

When I attempt to get the records/entries for one of my apps via the API I'm getting a 404 response code back along with "{ "message" :"Data not found"}" in the body of the response. However, I can see in the report page for my app that I should have two entries. All of the other API endpoints are working for me.

Here is my URL:

https://developer.snap.soti.net/api/v1/apps/0/appversions/9ad8d178-cecc-8e0a-4e08-39e2c918c536/entries/

What am I doing wrong?

  • 14 November 2017
  • SOTI Snap
  • 7 Answers
  • 0 Upvote
  • 2 Followers
  • 284 Views
    • 7 Answers
    • 0 Upvote
    • 2 Followers

7 Answers

Order By:   Standard | Newest | Votes
Deepak Fialok | posted this 16 November 2017

Hi Michael,

SNAP's App stores data based on the version of the app, if you have multiple versions of the app then it might be possible that you might be trying to get the data from the version which do not have the data.

While getting the API info from the dialog box it will also show the version of the app that you need to pass in your API calls.

Please check this assumption so that further diagnose could be performed around your issue.

  • 0
  • 0
Michael Broniola | posted this 27 November 2017

Hi Deepak,

My apologies for the delayed feedback. I think I only have one version of my app. Here is what the API returns when I make this request for the app versions:

https://developer.snap.soti.net/api/v1/apps/0/appversions/

{"snapResponse":[{"appVersion":{"id":"9ad8d178-cecc-8e0a-4e08-39e2c918c536","name":"1","createdOn":"2017-11-13T19:47:21.453","lastUpdatedOn":"2017-11-13T19:47:21.453","fields":[{"id":"FieldId2","name":"testInputTextBox","controlType":"TextBox","supportedProperties":["text"],"dataSource":null}]}}]}

I took the id from the response and made a request for the entries:

https://developer.snap.soti.net/api/v1/apps/0/appversions/9ad8d178-cecc-8e0a-4e08-39e2c918c536/entries/

But I get this back:

{ "message" :"Data not found"}

Thoughts on what I could be doing wrong?

  • 0
  • 0
Deepak Fialok | posted this 29 November 2017

Hi Micheal, 

Can you share structure of your app, what control your app has, there is one known limitation for API, want to verify if that could be the reason for the same.

 

  • 0
  • 0
Michael Broniola | posted this 29 November 2017

Hi Deepak,

The app has a label, text box, and submit button. I've attached a screenshot of it for your review.

  • 0
  • 0
Deepak Fialok | posted this 05 December 2017

Hi Micheal, 

We have been able to identify the issue, can you please share in your final app, do you intend to use any of these widgets?

  • Capture images using Camera Widget
  • Record audio
  • Capture signature
  • 0
  • 0
Michael Broniola | posted this 05 December 2017

Hi Deepak,

I had not, but I added the signature widget to my app and I am now able to see my entries in the API. My understanding is that there will be an update at the end of December that will fix this so it's fine for now. Thanks for your help!

  • 0
  • 0
Deepak Fialok | posted this 04 January 2018

Hi Michael we have resolved this issue in our latest drop, please share your feedback.

Thanks for your patience.

  • 0
  • 0
Feedback