Good day,
I need to find data in a google sheet. (I am using the mit build-in blocks)
I have a textbox where user will type in a password, Then the app should read the google sheet to see if the password is on the sheet already.
please advise what is best blocks to use
Thanks in advance
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
                 
              
                  
                    April 26, 2023, 10:49pm
                   
                   
              2 
               
             
            
              This
Will return the row number (as a list) and then the data in the row (as a list) if the password is found.
If password is not present it will return an empty list
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              Thanks for advise. 
But this seems not to be working.
I copied your blocks.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    April 27, 2023, 10:02pm
                   
                   
              4 
               
             
            
              Show all your relevant blocks
Show example of your google sheet data
Do other blocks work using the Spreadsheet component / is your service account setup and you have a working credentials.json in place ?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              
I use your easy post script to add to my google sheet.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    April 27, 2023, 10:32pm
                   
                   
              6 
               
             
            
              
You didn't answer this ^^^^
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              Service account is not setup as I don't need a service account if I am only going to read from google sheet.
credentials.json not setup either.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    April 28, 2023,  5:46am
                   
                   
              8 
               
             
            
              Is Google Sheet set to Anyone with the link?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
                 
              
                  
                    April 28, 2023, 12:35pm
                   
                   
              9 
               
             
            
              Just tested without credentials. You are right, for me it slowly crashes the companion app, no response and no error. ( I have reported this up the line)
A workaround would be to use a gviz query:
or extend your google apps script to handle the search/match and response
Also
You should not really store passwords in plain text.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              Hi,
Thank you for getting back to me. 
The blocks you advised, not working either.
Can you please advise how to add to the script, meaning what to put in and where.
regarding the password, just in plain text temporally. Planning to change the password.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    April 28, 2023, 10:54pm
                   
                   
              11 
               
             
            
              
See HERE  for a fuller explanation of using gviz
You may also find this of use:
  
  
    Good day, thank you for this assistance  it sure helps a lot. I was wondering if you can assist with Hay Kel's Login & Register script? Assistance will be very much appreciated.