cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Trying to replace contents of a HTML template with a Name token using the replace function in Power Automate

Hi all 

I been watching a wonderful old  Flow video from a couple of years back https://www.youtube.com/watch?v=4OJDkBBEdhI&ab_channel=AbleBlue , and thought i would dip my toes into the power Automate world by copying the same steps with my University's  sharepoint /Power Automate. Has the syntax between Flow and Automate slightly change for the replace () function. The video Flow syntax is   replace(outputs('Get_file_content_-_from_the_simple_HTML_template_')?['body']),'{title}'),outputs('Get_item_-_the_Issue_(from_list_from_SharePoint)_')?['body/{Name}'] )

 

When I try to replicate the steps in Power Automate I get the following:

replace(body(' Get_file_content_HTML_Template'), ' {Title } ',body (get_item_-_Issue_Item')?['{Name}; ]) and Automate doesn't like it at all. I am at my wits end with this one   -- help

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

Hi @bllknight007 ,

 

I think the issue is with your syntax,

Sumen_0-1603986190373.png

replace(body(' Get_file_content_HTML_Template'), ' {Title } ',body (get_item_-_Issue_Item')?['{Name}; ]) .

Hope fixing this might work for you 😀

View solution in original post

1 REPLY 1
Frequent Visitor

Hi @bllknight007 ,

 

I think the issue is with your syntax,

Sumen_0-1603986190373.png

replace(body(' Get_file_content_HTML_Template'), ' {Title } ',body (get_item_-_Issue_Item')?['{Name}; ]) .

Hope fixing this might work for you 😀

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (6,934)