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 Platform Community / Forums / Power Automate / Concat function for sh...
Power Automate
Answered

Concat function for sharepoint list in power automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

On the sharepoint list, I have a column named as SalesID which consist of unique ID's. However, there are few blank fields as well. Currently, I am using below Concat function in which I also want to add an if function that says if SalesID is blank then the output will also be blank and if it consist of an ID then concat('https://crm.myshn.net/lightning/r/Opportunity/',triggerOutputs()?['body/SalesID'],'/view')

 

Compose input - string(triggerOutputs()?['body/SalesID'])

 Variable Value - concat('https://crm.myshn.net/lightning/r/Opportunity/',triggerOutputs()?['body/SalesID'],'/view')

 

PowerAutoU2_0-1696497557376.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Are you getting an error?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I want to add an if function within the existing concat function.

    If function should include if SalesID is blank then the output will also be blank and if it consist of an ID in that case use the concat function.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Move the Initialize variable at the very top. Set it initially to blank.

    You can then just use the condition action and set the variable inside the yes and no branch accordingly. Makes sense?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Please suggest an alternate solution without the condition action.

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    if(empty(triggerOutputs()?['body/SalesID']),'',concat('https://crm.myshn.net/lightning/r/Opportunity/',triggerOutputs()?['body/SalesID'],'/view'))
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much. This helped 🤗

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard