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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Help with expression

(0) ShareShare
ReportReport
Posted on by

Hi All, 

 

Can someone fix this expression for me. 

 

contains(triggerOutputs()?['body/{Path}'], outputs('Get_a_row')?['body/MBM 1'], replace('NYS, 'NYS', 'S'))
 
What I am trying to achieve. 
 
Updating Row in Excel doc by matching part of the folder path with column title, replacing the current text within the cell from NYS to S when a document is submitted as trigger. If the folder path does not match with the column title I would like the cell to remain NYS. 
 
Any help with this would be much appreciated. 
 
Thanks 
 
Archie
Categories:
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Archiehelp  you expression should be as follows, replace 'celltoreplace' with the actual cell name which needs to be replaced

    if(contains(triggerOutputs()?['body/ID'],outputs('Get_a_row')?['body/MBM 1']),replace(outputs('Get_a_row')?['body/celltoreplace'],''),outputs('Get_a_row')?['body/celltoreplace'])

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard