# How to connect 2 Data Types in a Workflow?

**URL:** <https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825>\
**Category:** Need help\
**Created:** [December 17, 2018, 12:56pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825 "2018-12-17T12:56:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 12:56pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/1 "2018-12-17T12:56:35Z")

</div>

Hey,

I have 2 Data Types - Team & Member.

I would like to add Members to a specific Team, but I cannot get the Workflow (ie; when Add Member is clicked add member to XYZ Team) I just keep getting errors?

I have a page created team/zyz-team (this is created dynamically from the team name that is entered on the homepage), and this is where I have the Add Team Members field, but like I mentioned I cannot connect the 2 Data Types (Team & Member) and for a Workflow to work correctly?

Any advice.

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [December 17, 2018, 1:12pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/2 "2018-12-17T13:12:39Z")

</div>

Can you share the page and workflow you built? It can be via screenshots or a view app link.

Anyway, I’d try first by having a field Member List in the Team thing and then simply adding the Member to that list, and also having a field called “Belongs to what team” in the Member thing and put the Team there, but I suspect that what you’re wanting to achieve is more complex than that.

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 2:09pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/3 "2018-12-17T14:09:02Z")

</div>

Thanks for the advice @vini_brito but those suggestions don’t seem to work ☹

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [December 17, 2018, 2:11pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/4 "2018-12-17T14:11:37Z")

</div>

Can you share a link to your app editor, or at the very least, images of your data set up and the workflows you’re trying to run?

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [December 17, 2018, 2:40pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/6 "2018-12-17T14:40:09Z")

</div>

Based on what I’m looking at, it looks like you’re trying to set things to “Current Page’s Team,” but the Current Page does not have a Team assigned anywhere. That’s likely why nothing is happening. At some point on page load, you’ll need to set the Page data as a team.

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 2:45pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/7 "2018-12-17T14:45:22Z")

</div>

Ok. Makes a little more sense. Any pointers on how to set this correctly on page load?

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [December 17, 2018, 2:50pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/8 "2018-12-17T14:50:19Z")

</div>

Well, I’m not sure based on how you set it up. You might be able to use a Page is Loaded event to do that, then a “Display Data” action where you get the team from the URL. I would usually recommend sending the data when the user navigates to the page as part of the “go to page” action, but because you’re using the Get Data from URL, not sure the best way to do that.

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 2:52pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/9 "2018-12-17T14:52:12Z")

</div>

Oh. So I’m a bit stuck then ☹

---

<div class="post-metadata">

**Author:** ![andrewgassen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/andrewgassen/32/44248_2.png) [@andrewgassen](https://forum.bubble.io/u/andrewgassen)\
**Post date:** [December 17, 2018, 2:54pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/10 "2018-12-17T14:54:12Z")

</div>

Did you try the Page is Loaded route I mentioned?

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 2:54pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/11 "2018-12-17T14:54:46Z")

</div>

Was not sure how to set that up properly 🙂 This would be on the Team page I’m guessing?

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 2:58pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/12 "2018-12-17T14:58:27Z")

</div>

Tried setting a Page is Loaded workflow on the Team page, but not sure which exact actions to use?

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [December 17, 2018, 3:14pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/13 "2018-12-17T15:14:57Z")

</div>

I’ll answer here now.  
So you’ll have to change how you send the user to the Team Page. My suggestion was to use “send data to page” to send the user to the Team Page, instead of the current way you are doing with the URL.

I’ve set an example in the app, take a look at it. It sends the data of the newly created team to the Team page, and every element there now can draw data from the team page.

Check specifically the workflow that creates a team at the index page.

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 3:25pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/14 "2018-12-17T15:25:19Z")

</div>

Thanks.

The issue there is that I can’t automatically go to the Team page when the button is pressed. I need to show the team URL that is already there (ie; [mysite.com/team/team-acme](http://mysite.com/team/team-acme)). Then the user clicks that link to go to the team page. So your current method will not work ☹

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 3:27pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/15 "2018-12-17T15:27:09Z")

</div>

I’m also getting URLs with loads of digits - team/big-spaceship-1545060567342x782512862710464500 instead of a much cleaner team/big-spaceship

And in the App Data 1545060567342x782512862710464500 has been added as a Team Member to the Team?

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [December 17, 2018, 3:34pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/16 "2018-12-17T15:34:52Z")

</div>

> [@marc2](#):
>
> And in the App Data 1545060567342x782512862710464500 has been added as a Team Member to the Team?

That’s the unique id of the thing Member. The Member has a name… you just have to adjust your view of the database.

> [@marc2](#):
>
> The issue there is that I can’t automatically go to the Team page when the button is pressed

Yes it goes, that’s what the “Go to page” action does.

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 3:38pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/17 "2018-12-17T15:38:41Z")

</div>

Yes. Sorry have adjusted the view in the DB. That’s all cool.

But with the ‘go to page’ like I mentioned I need to display the link first on the homepage. It’s inside the Group Team Link. I need to have this show first, then a user clicks (or copies) this link to go to the homepage. Currently with the Workflow set on the button the user will not get to see this link?

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [December 17, 2018, 3:41pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/18 "2018-12-17T15:41:33Z")

</div>

Yes, the user will not see the link, no need for that. The user will click the “create team” and be immediately sent to the team page. It’s easier for the user.

If you need to show the link you can show the link at the team page.

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 3:43pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/19 "2018-12-17T15:43:36Z")

</div>

Good point Vini 🙂

How could I create, say on the Team page, a button that says ‘Copy Team URL’ that would copy ie; [https://mysite.com/team/team-acme](https://mysite.com/team/team-acme) which a user could then share with other team members?

I looked everywhere on how to do this, but could not find a solution ☹

---

<div class="post-metadata">

**Author:** ![marc2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marc2/32/29062_2.png) [@marc2](https://forum.bubble.io/u/marc2)\
**Post date:** [December 17, 2018, 3:47pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/20 "2018-12-17T15:47:35Z")

</div>

Still getting those crazy URLs though on team page creation - team/big-kahuna-1545061964540x134707170320056320

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [December 17, 2018, 3:52pm UTC](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825/21 "2018-12-17T15:52:32Z")

</div>

> [@marc2](#):
>
> a button that says ‘Copy Team URL’ that would copy

You can use the plugin “Air copy to clipboard” for that.

> [@marc2](#):
>
> Still getting those crazy URLs though on team page creation - team/big-kahuna-1545061964540x134707170320056320

Uhm, I really haven’t touched that part of Bubble yet, so I’m unaware on how to get better links, you’ll have to search the forum or open another topic for that.

[Next page](https://forum.bubble.io/t/how-to-connect-2-data-types-in-a-workflow/44825.md?page=2)
