# Google scripts help

**URL:** <https://community.thunkable.com/t/google-scripts-help/2428939>\
**Category:** Questions about Thunkable X\
**Created:** [May 21, 2023, 9:48pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939 "2023-05-21T21:48:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![thedarkwaterbuntafv](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thedarkwaterbuntafv/32/156106_2.png) [@thedarkwaterbuntafv](https://community.thunkable.com/u/thedarkwaterbuntafv)\
**Post date:** [May 21, 2023, 9:48pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939/1 "2023-05-21T21:48:44Z")

</div>

I just need to know how to get a variable on Google scripts to a variable on thunkable

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 21, 2023, 10:42pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939/2 "2023-05-21T22:42:42Z")

</div>

What do you mean by “a variable on Google scripts”?

---

<div class="post-metadata">

**Author:** ![thedarkwaterbuntafv](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thedarkwaterbuntafv/32/156106_2.png) [@thedarkwaterbuntafv](https://community.thunkable.com/u/thedarkwaterbuntafv)\
**Post date:** [May 21, 2023, 11:06pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939/3 "2023-05-21T23:06:50Z")

</div>

I’m using Google scripts to split text and everything works but I can’t figure out how to get the result onto thunkable. If I use the response block, I either get nothing or a link. @tatiang

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 21, 2023, 11:53pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939/4 "2023-05-21T23:53:56Z")

</div>

So you’re trying to get a value from a Google script using a Google API? How are you attempting that? Can you show a screenshot of your blocks?

There’s a lot of context here that you haven’t shared. I’m having to guess at a lot of things… but I assume you have text in a Google Doc/Sheet/etc. and you’re wanting to manipulate it with a Google script and then export that result into Thunkable… do I have that right?

---

<div class="post-metadata">

**Author:** ![thedarkwaterbuntafv](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thedarkwaterbuntafv/32/156106_2.png) [@thedarkwaterbuntafv](https://community.thunkable.com/u/thedarkwaterbuntafv)\
**Post date:** [May 22, 2023, 1:56am UTC](https://community.thunkable.com/t/google-scripts-help/2428939/5 "2023-05-22T01:56:37Z")

</div>

@tatiang

 ![IMG_2022](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/5/857bd2c4299744bfba77353c40607d24e7ddbee9.jpeg)  
 ![IMG_2023](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d39648383f603a9609060069b04a833c71d0086f.jpeg)  
Sorry for the later response.  
I know that the variable names are a bit confusing but it’s just a test for now. What’s supposed to happen is that it checks to see if there is a difference, then if there is, it takes the new things and separates them by the slashes (they’re dates). Right now I’m trying to get the variable 2check to be the same as month just to get the concept, but for some reason it will either give me nothing or a url, and I just want it to be the same as the month variable on Google scripts. And just in case you need it, it doesn’t come from google docs.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 22, 2023, 2:42am UTC](https://community.thunkable.com/t/google-scripts-help/2428939/6 "2023-05-22T02:42:20Z")

</div>

I’m so confused and there’s so much you’re not explaining. I’m sorry, I don’t think I can help you with this.

The one thing I can suggest is that if you’re able to have the Google Script populate a Google Sheet cell, then you can easily access that from Thunkable and even use Google Sheet formulas to manipulate the cell value.

Just a word of warning: you pretty much never want a forever loop without a wait block or other delay. It’s likely to crash your app or cause unwanted results, especially when you ask it to do something time-consuming like a Post command.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [June 26, 2023, 12:04pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939/7 "2023-06-26T12:04:24Z")

</div>

I hope your script gets more complicated than this. If not; it’s an utter waste of time as those operations are entirely possible without using appscript

---

<div class="post-metadata">

**Author:** ![thedarkwaterbuntafv](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thedarkwaterbuntafv/32/156106_2.png) [@thedarkwaterbuntafv](https://community.thunkable.com/u/thedarkwaterbuntafv)\
**Post date:** [June 26, 2023, 3:14pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939/8 "2023-06-26T15:14:30Z")

</div>

this was over a month ago. i knew way less than i do now. i worked on it for about a half hour before i realized it was a stupid solution

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 24, 2023, 3:14pm UTC](https://community.thunkable.com/t/google-scripts-help/2428939/9 "2023-09-24T15:14:53Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
