Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
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

 

  • Verified answer
    idsree3 Profile Picture
    12 on at
    Re: sending an email via Send an HTTP request to SharePoint with When an item is created or modified trigger

    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

  • idsree3 Profile Picture
    12 on at
    Re: sending an email via Send an HTTP request to SharePoint with When an item is created or modified trigger

    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

  • sandeepstw Profile Picture
    302 Super User 2025 Season 1 on at
    Re: sending an email via Send an HTTP request to SharePoint with When an item is created or modified trigger

    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 

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1