Is it possible to have an action button do a ...

(Bellave Jayaram) #1

Is it possible to have an action button do a HTTP POST followed by an HTTP GET?

I am currently doing GET and passing url parameters but the parameters may exceed the URL character limits.

@praveen @Philip_Garrett_Appsh

(Praveen Seshadri (AppSheet)) #2

Not currently unfortunately. It is on our TODO list though.

(Bellave Jayaram) #3

Okay, Thanks.

(GreenFluxLLC) #4

An action can set the value of a column though, and that can trigger a Google App Script perform the POST and GET. The only thing you can’t do is force a user’s AppSheet session to update and reflect the changes immediately.

(Bellave Jayaram) #5

Yes, true. What I am wanting is for the action button to go to a website immediately after returning from doing a POST.

(Bellave Jayaram) #6

Actually, come to think of it, what you suggest might actually work for me if I use two actions. Thanks @GreenFlux

(GreenFluxLLC) #7

Yeah, I think the new feature for multiple actions per workflow could help here. One action to write to the sheet (triggering the App Script), and one action to open the webpage. Hopefully the App Script can finish in time to update the server so the GET response can be displayed when the page first loads. You might want to add conformation dialog on the second action to slow down the user :).

(Praveen Seshadri (AppSheet)) #8

Generally speaking, I don’t want to encourage using AppScript because it is something external, asynchronous and difficult to maintain along with the rest of the app.

I know we haven’t provided an alternative here. But I’d like to gradually see us eliminate the need for using appscript

(GreenFluxLLC) #9

@praveen I agree that ideally, we shouldn’t need App Scripts at all. I’ve been very impressed with the speed with which the AppSheet team continues to deliver new features and I know this is on your radar.

I just wanted to offer an alternative, given the current limitations of AppSheet. And I’ve recently been learning a lot about App Scripts so I’m always looking for a new project to build :slight_smile: