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

Concat function for sharepoint list in power automate

(0) ShareShare
ReportReport
Posted on by

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,394 Most Valuable Professional on at

    Are you getting an error?

     

  • Community Power Platform Member Profile Picture
    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,394 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
    on at

    Please suggest an alternate solution without the condition action.

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 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
    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

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard