Skip to main content
Best answer

trigger action from html in Outlook header

  • March 17, 2021
  • 8 replies
  • 60 views

Hi. I’m using Jira notifications in Outlook to create tasks in Todoist. I would like the task to be a link to the Jira task so I don’t have to go search for it (this already works in Todoist and I use it frequently.) However, the only way to grab the URL of the Jira task is from the href tag buried in the Outlook html. Is there a way to isolate that tag somehow so I can create the linked task? 

Best answer by Troy Tessalone

Hi @rebc 

Try these options…

  1. Formatter > Text > Split: steps to split and isolate the URL
  2. [ADVANCED] Formatter > Text > Extract Pattern: to isolate the URL using regex
  3. [TECHNICAL] Code step to split or use regex to isolate the URL
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

8 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34082 replies
  • Answer
  • March 17, 2021

Hi @rebc 

Try these options…

  1. Formatter > Text > Split: steps to split and isolate the URL
  2. [ADVANCED] Formatter > Text > Extract Pattern: to isolate the URL using regex
  3. [TECHNICAL] Code step to split or use regex to isolate the URL

  • Author
  • 4 replies
  • March 17, 2021

Thanks! Would this work even though the URL changes every time? It will always be specific to the Jira task.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34082 replies
  • March 17, 2021

@rebc 

Also consider this Formatter > Text > Extract URL option.
NOTE: This will find the 1st URL in a blob of text, so you may need to use additional steps before to narrow down the text to search within.

 

Would have to see how the data comes thru from the trigger step.

Essentially you’d be looking to trim based on something that uniquely identifies the start (e.g. http) of a URL and end of the URL.


  • Author
  • 4 replies
  • March 17, 2021

OK, so trimming aside, the URL is a variable that will change every time. Is it possible to isolate that or is this just wishful thinking?

 

Thanks!


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34082 replies
  • March 17, 2021

Hi @rebc 

This step will work to find any URL: Formatter > Text > Extract URL


  • Author
  • 4 replies
  • March 17, 2021

@Troy Tessalone won’t it just find the first one though? the email header has several unfortunately.

 

thanks!!


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34082 replies
  • March 17, 2021

@rebc 

Correct, in the Zap you’ll need to first use a Formatter step to trim/split the text content before the desired URL.


  • Author
  • 4 replies
  • March 17, 2021

@Troy Tessalone Gotcha. I will try it! Thanks so much!