Building own URL Link to a Record in Email/SMS

Hi! With some help, I have figured out how to insert a <<web_url_link>> into my sms and email body templates. The problem I am having now, is that the link it provides goes to a default view that I have no control over. It shows all columns not hidden and does not display the โ€œMain Imageโ€. How can I build my own URL Link that will take the user to the proper record in the correct view?

FYI, my app is a to do list for my team, and I have a workflow setup to text when they are mentioned in a comment, but I want them to click the link to see the record they were mentioned in. Thank you.

1 47 5,419
47 REPLIES 47

Thank you very much (^_^)

No worries

@Aleksi, @MultiTech_Visions, Could I ask for a little help on this please as I canโ€™t get it to work.
My template is in a word document.

<<concatenate(โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1",
linktorow([Job No], โ€œAll Jobs_Detailโ€)
)

but this shows in my pdf as below. I cannot link to it.

3X_5_a_5acd9479f2e4fbd46b99ced073498dffa9c34b99.jpeg

If I include the linktorow in the link as @Stephen_Mattison has above I get an error

<<concatenate(โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1",

linktorow([Job No], โ€œAll Jobs_Detailโ€)
)

Error

โ€œErrorsโ€: โ€œError: Workflow rule โ€˜Material Approval Notoโ€™ action โ€˜Action 1โ€™ Attachment template. Expression 'concatenate(โ€œ<a href=โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1%22,โ€>https://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1โ€, <a href=โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1%22,โ€>linktorow([Job No], โ€œAll Jobs_Detailโ€))โ€™ is invalid due to: Expression โ€˜concatenate(โ€œ<a href=โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1%22,โ€>https://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1", <a href=โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1%22,โ€>linktorow([Job No], โ€œAll Jobs_Detailโ€))โ€™ could not be parsed due to exception: Sequence contains no elementsโ€ฆ",

Is it maybe something to do with the hyperlink in Word

3X_4_2_428943a177f145391ac398052b2a7e6d31335029.jpeg

Hey @Martina; After examining the error message you pasted, the formula presented seems to have a syntax error.

The problem youโ€™re running into is that youโ€™ve got a block of text, that you initiate with an open double quote, but inside the text block thereโ€™s another double quote (as part of the text); this is causing the โ€œopen/closeโ€ of the elements inside your CONCATENATE() to get confused.

When you need to include double quotes inside your text block, instead of encapsulating the text with double quotes (like you normally would), use a single quote to โ€œopen/closeโ€ the text block.


If Iโ€™m interpreting your formula correctly, youโ€™re wanting to create the <a href> HTML code block that represents the link to that row. Right?

concatenate(
'<a href=โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1%22',
linktorow([Job No], โ€œAll Jobs_Detailโ€),
'">'
)

That should output something like:

<a href=โ€œhttps://www.appsheet.com/start/864ea390-8692-4de0-a063e6b60c071164?refresh=1&wipe=1%22#control=ALL%2-Jobs_Detail&row=404dd38">

What do the ?refresh=1&wipe=1%22 do?

Thanks @MultiTech_Visions.Yes thatโ€™s exactly what I want.
Can I actually type the html a href tag in a Word document? I think I tried that and it didnโ€™t work. I was highlighting it and using the MS Word Link

@Lucinda_Mason if I remember right, this causes the system to start the app fresh - as in to refresh the system and wipe things clear??? I think wipe means something else, but I think thatโ€™s the idea. (If I remember right, this was something that Praveen first told everyone about.)

@Martina hereโ€™s an example of how I implemented something like this in an app Iโ€™ve made:


<<hyperlink(
concatenate(โ€œhttps://www.appsheet.com/start/5a0fc21b-5548-4af2-ba08-1bdf1d1e2541#control=bills_slide&row=โ€,encodeurl([BillID]),โ€œ&page=slideshowโ€),
[Bill_From_This_Account].[Account_Name]
)>>

In this example, you can see Iโ€™m using the HYPERLINK() function; the first part, the concatenate() that builds the actual URL, is using an older setup - but the idea is sound.

This renders in the workflow output (inside a PDF or email) as a hyperlink with the text of the Account_Name.

When I ran into this issue just the other week, instead of building my own link I used <<_ROW_WEB_LINK>>.

  • Renders as โ€œClick Hereโ€
  • Takes the person directly to the record inside the app
Top Labels in this Space