# "Link to Action"

**URL:** <https://discuss.google.dev/t/link-to-action/73058>\
**Category:** AppSheet Q&A\
**Tags:** automation\
**Created:** [March 8, 2021, 1:39pm UTC](https://discuss.google.dev/t/link-to-action/73058 "2021-03-08T13:39:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Camilo\_Sie](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/juan_camilo_sie/32/1656_2.png) [@Juan\_Camilo\_Sie](https://discuss.google.dev/u/Juan_Camilo_Sie)\
**Post date:** [March 8, 2021, 1:39pm UTC](https://discuss.google.dev/t/link-to-action/73058/1 "2021-03-08T13:39:39Z")

</div>

Actually I don´t know if what I’m about to ask is possible, but Let’s give it a try.

I Want to create a navigation view, where I can Go to other apps, Go to an external links and so.

But It means that I have to create multiples Actions depending on the external view that I want to go.  
So I create a column in my database to refer to that Action, bot of course I don’t know how to link that column to the actions.

 ![3X_b_8_b8d50c7caadc693a74662954719bdb7ce7048cc4.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/8/c/8cefabadc406f4dd5d4d801c44f73450f4c5c989.png)

This is my data base

And this is how It’s going so far the view

 ![3X_1_2_12b91aca8ae1b6d8e6f26cf4fc96aa860ca9410d.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/1/4/14ef8da05c558e6e86f8f2d73760d7413bf84c72.png)

The first row is to go to another app, and the second is to go to an external URL for Datastudio

---

<div class="post-metadata">

**Author:** ![MultiTech](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/multitech/32/94412_2.png) [@MultiTech](https://discuss.google.dev/u/MultiTech)\
**Post date:** [March 8, 2021, 2:43pm UTC](https://discuss.google.dev/t/link-to-action/73058/2 "2021-03-08T14:43:10Z")

</div>

### You’ll need to do the following:

- Create an action with LinkToApp() for your app links
- Create an action to launch external websites

_Each of the two previous actions each need their own conditional statement for when they should run - that way only the link action runs for links, and app-links only work for app-links._

- Create a composite action containing both of those
- Put that composite action inside the view event for your menu-view

## When someone taps on an option, the composite action is fired off - and only the appropriate action (the external link or app-link) fires off based on the item tapped by the user.

---

<div class="post-metadata">

**Author:** ![Juan\_Camilo\_Sie](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/juan_camilo_sie/32/1656_2.png) [@Juan\_Camilo\_Sie](https://discuss.google.dev/u/Juan_Camilo_Sie)\
**Post date:** [March 8, 2021, 3:04pm UTC](https://discuss.google.dev/t/link-to-action/73058/3 "2021-03-08T15:04:29Z")

</div>

MultiTech\_Visions:

> Each of the two previous actions each need their own conditional statement for when they should run

How Can I get where the user taps ? because this is the way that I can get that condition

---

<div class="post-metadata">

**Author:** ![MultiTech](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/multitech/32/94412_2.png) [@MultiTech](https://discuss.google.dev/u/MultiTech)\
**Post date:** [March 8, 2021, 3:54pm UTC](https://discuss.google.dev/t/link-to-action/73058/4 "2021-03-08T15:54:06Z")

</div>

It’s just based on the record; this is how I’ve done it in the past:

I’ll create a column in my menu table that holds a variable I assign;

- then inside the condition for any menu action, I simply use the values I assigned.

So for your case I would just use the words: “App” or “Link”

- Then your conditional statement becomes really easy:

`[Quick_Menu_Trigger_Word] = "My value"`

When a user taps on a record that matches that value, that action is triggered.

* * *

The idea is like this, you’ve got all the actions in a stack, but only one will match the trigger word from the option selected by the user.

| Option | Trigger |
| --- | --- |
| App Link #1 | App1 |
| App Link #2 | App2 |
| Website 1 | Link1 |
| Website 2 | Link2 |

You’ve got all those trigger words in a stack like that, and when you tap on a row the whole stack runs down the list.

- It’s only when a matching trigger word is found that _that_ action fires off.

---

<div class="post-metadata">

**Author:** ![Juan\_Camilo\_Sie](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/juan_camilo_sie/32/1656_2.png) [@Juan\_Camilo\_Sie](https://discuss.google.dev/u/Juan_Camilo_Sie)\
**Post date:** [March 8, 2021, 3:55pm UTC](https://discuss.google.dev/t/link-to-action/73058/5 "2021-03-08T15:55:47Z")

</div>

That’s what I needed, Easy and worked perfectly

---

<div class="post-metadata">

**Author:** ![Juan\_Camilo\_Sie](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/juan_camilo_sie/32/1656_2.png) [@Juan\_Camilo\_Sie](https://discuss.google.dev/u/Juan_Camilo_Sie)\
**Post date:** [March 8, 2021, 3:59pm UTC](https://discuss.google.dev/t/link-to-action/73058/6 "2021-03-08T15:59:05Z")

</div>

Just to know.

Any advice when you have the option to go to another app ??

This is because Now it is working perfectly, but when it apps the Other app. I can not register any data or anything, I don’t know what I’m doing wrong

---

<div class="post-metadata">

**Author:** ![MultiTech](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/multitech/32/94412_2.png) [@MultiTech](https://discuss.google.dev/u/MultiTech)\
**Post date:** [March 8, 2021, 4:12pm UTC](https://discuss.google.dev/t/link-to-action/73058/7 "2021-03-08T16:12:01Z")

</div>

Juan\_Camilo\_Sierra:

> I can not register any data or anything, I don’t know what I’m doing wrong

Not sure what you mean by this, could you elaborate?

---

<div class="post-metadata">

**Author:** ![Juan\_Camilo\_Sie](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/juan_camilo_sie/32/1656_2.png) [@Juan\_Camilo\_Sie](https://discuss.google.dev/u/Juan_Camilo_Sie)\
**Post date:** [March 8, 2021, 4:14pm UTC](https://discuss.google.dev/t/link-to-action/73058/8 "2021-03-08T16:14:09Z")

</div>

![3X_c_1_c1b0c75db88c681b559efb68d7d37fe423267073.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/6/a/6a79995b200f21d3dfd798984e66b392a47a1900.png)

This is how the app looks like when I go there by the action.

And this is how it should look like:

 ![3X_b_3_b3cd5d2f06bc83bd2cef301ccafe9af40399ad20.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/e/8/e8eb5ae0647aed77110c732b4e37798d503d2daa.png)

---

<div class="post-metadata">

**Author:** ![MultiTech](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/multitech/32/94412_2.png) [@MultiTech](https://discuss.google.dev/u/MultiTech)\
**Post date:** [March 8, 2021, 4:35pm UTC](https://discuss.google.dev/t/link-to-action/73058/9 "2021-03-08T16:35:04Z")

</div>

Check your linktoapp() formula
