Google Sheets Upload Help Request

First off, Happy Holidays to everyone here. I have been diligent in cleaning up my code to make a well-functioning app. I wanted to have an idea of not "who," but where and when a particular downloaded app was being used. With help, I added a random number generator from 999,999 to 9,999,999 and this becomes the User_ID number. I modified an available script to what I think should allow me to send data to my Google Sheets.

  1. I am not sure what I am doing, as this is new territory for me. I am mostly copying and pasting and crossing my fingers.

  2. Given that I get an error code, I know I am improperly "mixing and matching" but I do not know where. Can someone help me eliminate my error and, perhaps, lead me to a successful Sheets download?

error1

  1. Even though the chances are low, you run the risk of a collision of two random numbers being the same. You might consider a random password generator or this extension for your user ID

  2. Have you looked at the responseContent ? When sending data using a prefilled form, the response is usually an html file not data.

  3. Just an observation, but it is unlikely that the Location sensor will get a fix immediately on Screen Initialise, unless you are using a fused provider (wifi/data/gps)

  4. Are you trying to retrieve data that already exists, or set new data ?

Greetings,

I finally found an app that worked for me to upload data from the app to my Google Sheets account. Thank you, Pura Vida . . . several cups of coffee are forthcoming;).

Unfortunately, when I try to insert the operative parts into my app, things go off the rails and the lists cause an error. All I think I am doing is copying and pasting from Pura Vida and changing pointers and data. As one can see (below) the output for Latitude and Longitude (the first 2 columns) is randomly? replaced by a label name F_Local). Only the Local_Information_Label contents show correctly. It DOES display the contents of the Local_Information_Label but that is also when the error arises. I have since moved the Web2 blocks inside the When_Web1.GotText block to delay the output until the labels populate but that does not seem to be working.

If someone could help me correct this dysfunctional code, I would really appreciate it. I am pretty burned out by trying, and failing for one reason or another, multiple attempts at uploading to Sheets over the past week.

Please note that I haven't included variables but the connection to Sheets works so the addresses are correct.

||F_Local|F_Local|2 Miles NNW Palm Desert CA|
||F_Local|F_Local|2 Miles NNW Palm Desert CA|
||F_Local|F_Local|2 Miles NNW Palm Desert CA|

errorA

Following is the block I am trying to insert Pura Vida's code into.

Did you forget that you already asked this question once?

Please provide links to the code you are following, and show your scripts and all your relevant blocks. How otherwise can we help ?

From your blocks, Local_Information_Label needs a .Text suffix if you want to send it over the Web

Look for the list fron csv table block... this is where the error occurs... it most probably is in your Web2.GotText event

Then debug your blocks... we talked about that in detail in one of your other threads

Taifun

Greetings, Everyone

I am grateful for all of the responses. Here is what I came up with from all of the information provided.

Simplified: