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 / sending an email via S...
Power Automate
Answered

sending an email via Send an HTTP request to SharePoint with When an item is created or modified trigger

(1) ShareShare
ReportReport
Posted on by 12

While creating this flow, my requirement is to to access the column names along with the values for the choice/look up fields of my share point list in the dynamic content.

I understand triggerOutputs()?['body/Value'] dynamic content is based on my 'When an item is created or modified' trigger. But how to get the corresponding column filed names into this flow? 

for example in the email I want to include

if 'Choice question' is not null then the corresponding 'triggerOutputs()?['body/Value']'

if null then it should be blank or nulls ' '

-Thanks

 

Categories:
I have the same question (0)
  • sandeepstw Profile Picture
    312 Moderator on at

    HI @idsree3 ,

     

    You can use this code where replace columnname with actual column name in list -

     

    if(
     equals(triggerOutputs()?['body/ChoiceColumnName'], null),
     '',
     triggerOutputs()?['body/ChoiceColumnName/Value']
    )

     

     

    Please give kudos and mark as solution if it helps.  

      

    Thanks, 

    Sandeep Mishra 

     

  • idsree3 Profile Picture
    12 on at

    Thanks for the reply. It won't work. I tried this before asking here in this community forum.

    triggerOutputs()?['body/ChoiceColumnName'] means 

    {"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value": " "}

    not the column name. 

    any other ideas to retrieve these column names in dynamic content ?

    Thanks

  • Verified answer
    idsree3 Profile Picture
    12 on at

    Here is what I figured out and it worked!

    If you would like to access the column headers of the share point list, for every header we have to initialize the variable as string and compose the variable with the logic accordingly. In my case, I have almost 15 headers which I have to initialize and put if logic in the compose steps. The output of these 'compose variables' can be used in the HTTP request to SharePoint flow anywhere. These steps are needed because we cannot use any of the regular expressions / logic in html code/JSON body of the content.

    attached screenshots for reference.

    -Thanks

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard