# Agent for information

**URL:** <https://community.glideapps.com/t/agent-for-information/29981>\
**Category:** Ask for Help\
**Tags:** custom-code\
**Created:** [August 4, 2021, 11:33am UTC](https://community.glideapps.com/t/agent-for-information/29981 "2021-08-04T11:33:43Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 12:40pm UTC](https://community.glideapps.com/t/agent-for-information/29981/21 "2021-08-04T12:40:20Z")

</div>

Detect Mobile

```auto

  var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);

```

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [August 4, 2021, 12:50pm UTC](https://community.glideapps.com/t/agent-for-information/29981/22 "2021-08-04T12:50:13Z")

</div>

Hola Thinh,

Reading and studying these days JavaScript better, I could notice that Date-Time variables are special when they are exchanged between applications.

JSON doesn’t support Date-Time objects/variables so these must be converted to string in order to be sent.

Try this:

- Convert your Date-Time value into string (returned by Manu’s UTC time code)
- Send this new value to Webhook (via Integromat?) and check if the value is received correctly

If everything is fine in Integromat, you will have to convert again your new Date from String into Date in Integromat.

I hope it helps

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 12:52pm UTC](https://community.glideapps.com/t/agent-for-information/29981/23 "2021-08-04T12:52:05Z")

</div>

new version [https://Agent.manun2.repl.co](https://Agent.manun2.repl.co)

Can you test for Mac

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/2/d2845b4a48006c4a07c4ce334164c32a03cee557.png)

This is a code that I found on the net !!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 4, 2021, 1:04pm UTC](https://community.glideapps.com/t/agent-for-information/29981/24 "2021-08-04T13:04:11Z")

</div>

Sweet!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 4, 2021, 1:05pm UTC](https://community.glideapps.com/t/agent-for-information/29981/25 "2021-08-04T13:05:20Z")

</div>

Thanks @gvalero, I will deffo try this when I have time.

I used Manu’s YC to derive the user’s timezone offset. However it does not work in my timezone solely because we use dd/mm/yyyy instead of mm/dd/yyyy so I had to find an alternative.

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [August 4, 2021, 1:11pm UTC](https://community.glideapps.com/t/agent-for-information/29981/26 "2021-08-04T13:11:40Z")

</div>

Ah!!

I think your format **dd/mm/yyyy** brings problems as well.

Take a look at this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9fcf6c59b83725722032c4a606b398ce57ffc24e.png)

Te cuidas!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 4, 2021, 1:31pm UTC](https://community.glideapps.com/t/agent-for-information/29981/27 "2021-08-04T13:31:17Z")

</div>

Solution: Move to US? 🤣

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 1:39pm UTC](https://community.glideapps.com/t/agent-for-information/29981/28 "2021-08-04T13:39:17Z")

</div>

Uh  
In the YC DateUTC it reverts to ISO format, so it’s a common format “YYYY-MM-DDTHH: mm: ss.sssZ”  
I think Glide reformatted for display and internal management at regional setting.  
After that it is easy to convert for the webhook.

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 1:41pm UTC](https://community.glideapps.com/t/agent-for-information/29981/29 "2021-08-04T13:41:14Z")

</div>

Or you modify the script to make a return value in string so in ISO format

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [August 4, 2021, 2:09pm UTC](https://community.glideapps.com/t/agent-for-information/29981/30 "2021-08-04T14:09:37Z")

</div>

Hi,

Another code that can be useful if you want to know the user language on your APP… Just use the Hell YC template for it.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/5/75f5bea42af9fabb00294d80c8da4774ff4047e8.png)

```auto
const leng={es: "Spanish", en: "English", fr: "French", de: "German", it: "Italian"};

const ID= window.navigator.language.slice(0, 2);
return leng[ID]

```

More codes here: [https://tools.ietf.org/rfc/bcp/bcp47.txt](https://tools.ietf.org/rfc/bcp/bcp47.txt)

Saludos

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [August 4, 2021, 2:13pm UTC](https://community.glideapps.com/t/agent-for-information/29981/31 "2021-08-04T14:13:11Z")

</div>

That’s interesting @Manu.n , can you get clicked X:Y position of the pointer or finger? In %

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 2:26pm UTC](https://community.glideapps.com/t/agent-for-information/29981/32 "2021-08-04T14:26:17Z")

</div>

Hello @Uzo  
Without even thinking too much or doing tests, I think it’s not possible, because your request is for the front-end. and the YC has no connection with this one

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [August 4, 2021, 2:28pm UTC](https://community.glideapps.com/t/agent-for-information/29981/33 "2021-08-04T14:28:31Z")

</div>

tnx… I’m trying to build a slider component

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 2:29pm UTC](https://community.glideapps.com/t/agent-for-information/29981/34 "2021-08-04T14:29:36Z")

</div>

good luck 😀 👍

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [August 4, 2021, 4:19pm UTC](https://community.glideapps.com/t/agent-for-information/29981/35 "2021-08-04T16:19:54Z")

</div>

> [@Manu.n](#):
>
> I think @Mark is growling with my post and he will tell us again that we cannot use YCs in an action.

You should be able to use YC columns _in_ an action. Do you have a simple example app where that fails?

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 4:31pm UTC](https://community.glideapps.com/t/agent-for-information/29981/36 "2021-08-04T16:31:31Z")

</div>

Yes  
Here is a little video.  
The principle is to modify the order of a list.  
So with YC I determine what the next number is.  
The action on the list is to copy the new number to the order column. But it doesn’t work.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [August 4, 2021, 4:34pm UTC](https://community.glideapps.com/t/agent-for-information/29981/37 "2021-08-04T16:34:30Z")

</div>

Can you please try reproducing it in a very simple app? Ideally just one tab with one button. And I need a support link.

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 4, 2021, 4:42pm UTC](https://community.glideapps.com/t/agent-for-information/29981/39 "2021-08-04T16:42:12Z")

</div>

The only time it works, and, if you add a text component to the page with the column or a column related to the YC. The action works.  
This is my observation

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 5, 2021, 2:52am UTC](https://community.glideapps.com/t/agent-for-information/29981/40 "2021-08-05T02:52:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/2/a263e28b0200144ed3c7262baa777502ed20e700.png)

Works well for Mac.

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 10, 2021, 1:16pm UTC](https://community.glideapps.com/t/agent-for-information/29981/41 "2021-08-10T13:16:49Z")

</div>

> [@Mark](#):
>
> Pouvez-vous s’il vous plaît essayer de le reproduire dans une application très simple? Idéalement, un seul onglet avec un seul bouton. Et j’ai besoin d’un lien d’assistance.

@Mark  
I made this little app for you.  
The idea is to make in an Action a SetColumn of a value produced by the YC.

Here is the support link  
[https://go.glideapps.com/support/13148310-761f-4187-b5d3-6b8268c056a1](https://go.glideapps.com/support/13148310-761f-4187-b5d3-6b8268c056a1)

[Previous page](https://community.glideapps.com/t/agent-for-information/29981.md?page=1)

[Next page](https://community.glideapps.com/t/agent-for-information/29981.md?page=3)
