web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Invalid expression-hel...
Power Automate
Answered

Invalid expression-help troubleshoot

(0) ShareShare
ReportReport
Posted on by 1,934 Moderator

Hi everyone,

 

I have an expression that is coming up as invalid, but I need help pointing out where the error is:

 

if(equals(item()?['functionName']),'approval',(concat('<a href="', item()?['respondLink'] '"> Approve file</a>')),(concat('<a href="', item()?['respondLink'] '"> Delete file</a>'))

 

Suspecting that the error lies in where the quote marks are, but I need help!

Thanks,

Anne

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    @annetoal 

     

    Try this 

     

    if(equals(item()?['functionName'],'approval'),(concat('<a href="', item()?['respondLink'] '"> Approve file</a>')),(concat('<a href="', item()?['respondLink'] '"> Delete file</a>'))

     

    I think it was issue with equals function, you may have forget to one more comparing parameter there 

  • annetoal Profile Picture
    1,934 Moderator on at

    @Anonymous ,

    Thanks for responding so quickly, but the solution you posted is identical to mine! Same error--

    Anne

     

  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @annetoal 

     

    Could you try this 

     

     

    If(equals(item()?['functionName'],'approval'),concat('<a href="', item()?['respondLink'], '"> Approve file</a>'),
    concat('<a href="', item()?['respondLink'], '"> Delete file</a>'))
     
     
     
  • annetoal Profile Picture
    1,934 Moderator on at

    Thank you thank you. It works beautifully.

     

    Anne

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    You are welcome 🙂

     

    It was issue with concat, you have forget to put comma after item()?['respondLink'] in concat function inaddition to issue with equals function

     

    Have a nice day 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard