# Create Link to Resulting Post upon Form Submit

**URL:** <https://community.glideapps.com/t/create-link-to-resulting-post-upon-form-submit/53861>\
**Category:** Ask for Help\
**Created:** [November 11, 2022, 6:24am UTC](https://community.glideapps.com/t/create-link-to-resulting-post-upon-form-submit/53861 "2022-11-11T06:24:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLA\_68](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@BLA\_68](https://community.glideapps.com/u/BLA_68)\
**Post date:** [November 11, 2022, 6:24am UTC](https://community.glideapps.com/t/create-link-to-resulting-post-upon-form-submit/53861/1 "2022-11-11T06:24:02Z")

</div>

In Pages I have created a community forum.

When a person posts a new topic, the form (of course) creates a new row that has fields like “title” “body” etc. This is a post. The forum page displays a collection that lists in chronological order all of the posts and then when a user clicks on a post in that list, they go to a detail page (I.e. the “Show Detail Screen” action) that shows the entire post and any replies to the post.

When a new post is created, or someone comments on the post, I wanted moderators and others to be notified by email. So I have created a custom action that, upon form submit, triggers a zap that emails a moderator and also those who have turned on email notifications whenever a post or comment is posted.

So here’s my question. In the email notification, I would like to be able to include a link to the actual “post”…basically a deep link to the detail screen/page for the post. For comments to an existing post, this is easy, because the post/page already exists so I can create a link to that using the" link to current screen." since the user is on that screen when commenting.

However, what I can’t figure out…and it may not be possible…is how to create a link to the initial post. When the user submits the form that creates the post, of course the entry does not yet exist. Any ideas on how I might create a custom action that after the submission of the form, captures the link to the just created row/post/page so that it can be fed through the zap to the notification email?

---

<div class="post-metadata">

**Author:** ![Joe\_Gabriele](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/joe_gabriele/32/57595_2.png) [@Joe\_Gabriele](https://community.glideapps.com/u/Joe_Gabriele)\
**Post date:** [November 11, 2022, 11:48am UTC](https://community.glideapps.com/t/create-link-to-resulting-post-upon-form-submit/53861/2 "2022-11-11T11:48:26Z")

</div>

Each post should have the same base URL except for the end which is the ROW ID of the post.

So I would try to take the deep link of any post, create a Template column, replace the current Row ID with “ROWID” and then substitute “ROWID” with the Row’s ID. Hope thats not confusing.

Example:

YourURL.glide.page/dl/home/s/5a567a/s/3ddb6b/r/ROWID

Every time a new row is added the deep link is automatically created, which you can then add to your email.

---

<div class="post-metadata">

**Author:** ![BLA\_68](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@BLA\_68](https://community.glideapps.com/u/BLA_68)\
**Post date:** [November 11, 2022, 4:05pm UTC](https://community.glideapps.com/t/create-link-to-resulting-post-upon-form-submit/53861/3 "2022-11-11T16:05:54Z")

</div>

Oh nice! I never really examined the URL structure. That should work!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 12, 2022, 4:06pm UTC](https://community.glideapps.com/t/create-link-to-resulting-post-upon-form-submit/53861/4 "2022-11-12T16:06:15Z")

</div>

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