Hello!
I'm currently working on an AppSheet app that submits data via a form to a Google Sheet.
It's set up in the way AppSheet appears to have intended: the data source is Google Sheets with specific columns, the users are able to submit data via a form view. This works as intended - a new record is added. From there, an automation is triggered (on adding a new row to our sheet), which sends this data to an external API, which then processes the submission and updates our backend system. The integration is working well overall.
The Challenge:
However, Iโm running into an issue with handling errors from the API and providing real-time feedback to the user. Specifically:
I'm trying to figure out a way to:
Iโve considered:
Has anyone tackled a similar issue or found a creative workaround to handle API errors and provide real-time feedback to the user within AppSheet? Any advice, suggestions, or best practices would be greatly appreciated!
Thanks in advance for your help!
Solved! Go to Solution.
AppSheet does not presently support Request/Response type interactions directly with external API's. It can only send the data TO the external API but has no way to capture and process any responses.
EDITED: It has been pointed out below that AppSheet DOES support return payloads. Not sure how I missed this. I don't know how it works or exactly the limitations but will get familiar with it soon!
You can also implement a Google App Script which returns a response. This is supported. So your automation calls the script, the script make the external API call, grabs the response and parses that into a return value to AppSheet. You can then have subsequent steps in this automation that react the returned value from the script.
The next best option is to have the external API submit its response to the AppSheet API. But this requires you to be able to implement that ability on that external service which is typically not the case.
A third option it to use an integrator service such as Make. These services have connectors to many API's. If one of them has a connector to the external API, then you may be able to build a process that can submit to the external API, parse the response and then submit to AppSheet API. I do know that Make has integrations with AppSheet API.
Basically I decided to more or less go with what @WillowMobileSys and @scott192 have pointed out - I grab a response from the API and, if an error happens, proceed to send a notification to the user's device from the automation. This does introduce a bit of a delay between the error actually happening and the user being notified - which might not be a perfect solution for more fast-paced scenarios, but for my use case gets the job done.
Thanks for your replies.
User | Count |
---|---|
31 | |
14 | |
3 | |
3 | |
2 |