Google Doc : Change link url

Hello,

I’m trying to create a new google doc from a template.
My flow:

  1. Duplicates a google doc from a template that I have created
  2. Update some text with new values (using the “replace_text” action)

I’m having an issue with links. I can’t find a way to update their url.

For exemple I have a link pointing to google.com, I want to change it to gmail.com

Anyone has an idea on how to achieve that ?

Thanks a lot,

Matthias

Hi @matthias4

That’s an interesting workflow you’re building.

To clarify, is the problem that the replacing of text in your template isn’t working for link strings?

Could you share a screenshot of your step that’s attempting to replace the text in the document?

Thanks for your reply !

We have a link in the template google doc:
Text: “Go to website”
Href: “https://google.com

Screen Shot 2022-09-02 at 12.11.53 PM

I’m able to change the text content, but I can’t find a way to change the href. And I want to change the href.

I found this online: Is there a way to replace URL Link of Text in Google Docs API? - Stack Overflow

Integromat has a google doc action “Make All Links in a Document Clickable”.

So I guess is doable, but I’m wondering what’s the best Pipedream way.

Thanks