Best answer

Format content for post in Slack to put link behind text

  • 18 June 2023
  • 9 replies
  • 198 views

Userlevel 1
Badge

Dear community,

 

I have a Zap that posts newly booked interviews from Calendly / Greenhouse to a Slack. However, the CV URL can get quite long and thus I tried using the Markdown syntax to put it as a hyperlink on CV with “[CV](6. Attachments Url:https://grnhse-…3fb7f6b59a160e9)”. Unfortunately, this did not work and its not formatted as link.

 

Is there any other way to format a link when posting to Slack?

Also, is there an easier way than the “Zapier Paths” to use conditions and not show “UTM:” if all following variables are empty?

 

Many thanks!

---See below for the text posted in the Slack channel----

Interview with 6. Full Name:XX: 6. Direct URL:https://app2.gr…ple/14506148101 (6. Phone Numbers Mobile:+XXXX) and 1. Event Assigned To: XXXXX. [CV](6. Attachments Url:https://grnhse-…3fb7f6b59a160e9). 1. Event Start Time Pretty:10:00am - Monda…, June 12, 2023 (1. EventType Duration:15 minutes) Phone number: 1. Answers:XXX, with canceled:1. Event Canceled:false UTM:1. Tracking UTM Campaign:No data, 1. Tracking UTM Source:No data, 1. Tracking UTM Content:No data, 1. Tracking UTM Medium:No data, 1. Tracking UTM Term:No data

icon

Best answer by SamB 19 June 2023, 13:31

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

9 replies

Userlevel 7
Badge +14

Hi @greenhouseautomation 

Good question.

Please post detailed screenshots with how your Zap steps are configured to give us more context, thanks.

Userlevel 1
Badge

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

Hi @Troy Tessalone,

 

Thanks for your answer. Not sure how relevant it is for my problem but attached you can see the whole workflow and the action for sending the content to Slack.

I would really appreciate your help!

Thank you! 

Userlevel 7
Badge +11

Hi there @greenhouseautomation, welcome to the Community! 🎉

For the link you’d want to use the following format rather than the usual markdown link format: <https://zapier.com|Link text>

For example: 
66c8812f7721519681930a7b83850419.png

You can find out more about how to format Slack messages in a Zap here: Tips for formatting Slack messages
 

Also, is there an easier way than the “Zapier Paths” to use conditions and not show “UTM:” if all following variables are empty?

 

Paths would often be the easiest option when wanting to have a different outcomes when certain fields don’t have a value. But you could potentially use a single Code by Zapier action to output different message text depending on whether certain values exist. It’s a bit more advanced so depending on how comfortable you are with writing code, it might not be any easier in that respect.

That said, we do have a new feature (still in beta) that would allow you to use AI to help create the necessary code: 
c875937e8bf1fb1e8149c292fbc95173.png

You’d need to join Zapier’s Early Access Program to access that Generate with AI feature in a Code by Zapier action (while it’s in beta). You can find out more about how to use that feature here: Generate a Code step using AI (Beta).

Hope that helps. Please do keep us in the loop on how you get on with this!

Userlevel 1
Badge

Thank you very much!

Userlevel 7
Badge +11

You are most welcome, @greenhouseautomation! Glad I could help. 😁

Userlevel 1
Badge

@SamB maybe you can help me one last time 😁 I finally set it up in this way:

 

However, this sends it to Slack as plain text in the following format: Can you please help me fix it? 

<https://s101.recruiting.eu.greenhouse.io/people?job_status=all&search_terms=
email@hotmail.de&sort_by=last_activity&sort_order=desc&type=all|Candidate Search URL>

 

Many thanks

Userlevel 7
Badge +14

@greenhouseautomation 

Try removing this invalid tag.

 

Userlevel 1
Badge

@Troy Tessalone good catch but its still the problem that no formatting is applied:

 

Userlevel 7
Badge +14

@greenhouseautomation 

Check if there is a line break before the mapped variable for Attendee Emails.