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 / 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

    22.jpg
    222.jpg

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard