Section | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Rule syntax and best practices to follow are discussed in the Writing Rules to Retrieve and Update Data in a Google Sheet topic.
Step 1: Obtain an access token
As before, If you do not have to first get an access token . This is a one-for your Google Account, perform this one time step.
Open your web browser and login to your Google Account
Go to:
Live Forms Online Cloud customers: https://app.frevvo.com/google/consent
- Live Forms In-house customers: http://<your frevvo server domain name>/google/consent
- Copy and Save the access token. THIS IS VERY IMPORTANT. The token is used as the password for wizards and rules.
Click on the Accept button.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Step 2: Add the Business Rule
...
- It’s triggered by clicking on the Update Google Sheet button.
- We setup headers and an update query using your access token and spreadsheet key (the long ID in the URL of the Google Sheet). In this example, the name of the Google Sheet tab is Locations. Change the wsname= parameter to the name of your Google Sheet tab if you named the tab something different.
- Add updateparams: we’re updating location and extension with new values.
- Run the update – perform an http.put() and eval the results.
Step 3: Try it yourself using the sample form
...