# Dynamic creation of ObjectLink()

**URL:** <https://connect.superhuman.com/t/dynamic-creation-of-objectlink/30522>\
**Category:** Ask the Community\
**Created:** [May 7, 2022, 4:51am UTC](https://connect.superhuman.com/t/dynamic-creation-of-objectlink/30522 "2022-05-07T04:51:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thaddeus\_Robertson](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thaddeus\_Robertson](https://connect.superhuman.com/u/Thaddeus_Robertson)\
**Post date:** [May 7, 2022, 4:51am UTC](https://connect.superhuman.com/t/dynamic-creation-of-objectlink/30522/1 "2022-05-07T04:51:21Z")

</div>

I have some pages named Day 1, Day 2, and so on.

I want to create buttons that jump to a given day but I’m having difficulty.

If I use `ObjectLink()` it works as expected when passing the page object like so `ObjectLink([Day 1])` but when I try and generate the object `OpenWindow(ObjectLink(Concatenate("Day ",Days.filter([Day Name]="Thursday").[Day Number]))` I run into an error saying that ObjectLink() won’t accept text as a type.

Is there some hidden converter, say a `toObject()` function, or some other way around this?

---

<div class="post-metadata">

**Author:** ![Saul\_Garcia](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/saul_garcia/32/16406_2.png) [@Saul\_Garcia](https://connect.superhuman.com/u/Saul_Garcia)\
**Post date:** [May 7, 2022, 3:58pm UTC](https://connect.superhuman.com/t/dynamic-creation-of-objectlink/30522/2 "2022-05-07T15:58:42Z")

</div>

Hello @Thaddeus_Robertson!  
Unfortunately, to get an Object Link you need some special characters along with the page title that are generated when you create a page, so it is not possible to generate this as you tried.  
But there are other ways!

You can create a table with all the Day pages, and instead of creating the pages manually, you can use a duplicate page button to create one and at the same time get the object link of the newly created page. This way, when you want to reference it you can go look for it in the Pages Table.

Another way is getting the [Audit Pack](https://coda.io/packs/audit-pack-10415) and using the Doc Pages Table. This one gets every page you have in your doc with its respective object link.

I leave a doc with both options working as you explained.

https://coda.io/embed/fLYR8ngm0p/_suvLG?viewMode=embedplay

Inside the doc you can find a page called The Alternative, where I explain what you can do instead of doing all these complicated workflows.

You may also find this post useful on how to create links to pages.

> [@Keeping in-doc links after copying a doc](https://connect.superhuman.com/t/keeping-in-doc-links-after-copying-a-doc/29034/8):
>
> Hello there! Just to wrap it up and leave no room for confusion, there are a couple of ways to do this: [Using part of the url of the section you want to go to](https://connect.superhuman.com/t/keeping-in-doc-links-after-copying-a-doc/29034/4)[Using an object link from an object (like a table) that is in the page you want to go to as @Scott\_Collier-Weir suggests](https://connect.superhuman.com/t/keeping-in-doc-links-after-copying-a-doc/29034/2) I leave a doc with a bit more info on how to do this, so you can check for yourself how it would work:

Cheers!

---

<div class="post-metadata">

**Author:** ![Scott\_Collier-Weir](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/scott_collier-weir/32/29677_2.png) [@Scott\_Collier-Weir](https://connect.superhuman.com/u/Scott_Collier-Weir)\
**Post date:** [May 7, 2022, 5:46pm UTC](https://connect.superhuman.com/t/dynamic-creation-of-objectlink/30522/3 "2022-05-07T17:46:38Z")

</div>

I made the Audit pack and didn’t even think about using it for this 😂

Great idea though! Let me know how it works or if you have any issues with it! Happy to support.

---

<div class="post-metadata">

**Author:** ![Thaddeus\_Robertson](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Thaddeus\_Robertson](https://connect.superhuman.com/u/Thaddeus_Robertson)\
**Post date:** [May 8, 2022, 12:59am UTC](https://connect.superhuman.com/t/dynamic-creation-of-objectlink/30522/4 "2022-05-08T00:59:34Z")

</div>

Thanks Saul 😄

A lookup will do the trick nicely. Perhaps there will be a function for this in the future to reduce the maintenance overhead.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/system/32/24484_2.png) [@system](https://connect.superhuman.com/u/system)\
**Post date:** [May 11, 2022, 1:00am UTC](https://connect.superhuman.com/t/dynamic-creation-of-objectlink/30522/5 "2022-05-11T01:00:11Z")

</div>

Closed on May 11, 2022, 1:00am UTC

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