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 / What is the output of ...
Power Automate
Unanswered

What is the output of trigger "SharePoint - When an item is created or modified"

(0) ShareShare
ReportReport
Posted on by 19

Hello,

 

I am trying to build a really simple flow, where when someone creates or modifies an item in my SP List I would send an email.
Here are my steps:

 

  1. I started from a blank template.
  2. Added a "SharePoint - When an item is created or modified" trigger. My site was not listed in the dropdown so I added a custom value in the format "https://xxx.sharepoint.com/sites/yyyy"
  3. Added a condition in order to check if the item is created or modified. So naturally I am expecting that the previous step would provide dynamic content relevant to item that got created or modifier. But what I get is a "List of Items"spListFlow.PNGIn advanced mode this dynamic content is translated to "triggerBody()"

This is really weird because I had previously done the same thing in another flow and the result of the step was the actual item and I could select its Properties.

The microsoft documentation is also obscure stating that for the operation GetOnUpdatedItems: "The outputs of this operation are dynamic"

https://docs.microsoft.com/en-US/connectors/sharepointonline/#when-an-item-is-created-or-modified

 

So my question is what to expect as a result from the trigger? Could it be possbile that since there is "quick edit" on sharepoint lists I might get a list of items, instead of one? Is it safe to go write triggerBody()['Title'] or access any other propery of the item? I was hoping to get the item's properties listed in the dynamic content but I was taken aback by the result.

 

Thank you

Categories:
I have the same question (0)
  • leyburn19 Profile Picture
    2,157 on at

    Why dont you just do that on the settings to the List on SP itself under the built in "Alert Me"

     

    Capture.PNG

  • pdrampis Profile Picture
    19 on at

    Because I am intending to do much more than just sending an email. But am stuck at the first step.

  • leyburn19 Profile Picture
    2,157 on at

    This wil triiger based on that criteria

    SP Triggers.PNG

     

     

     

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    Most of the list item properties should be available to you in Dynamic Content when using the "When an item is crested or changed" trigger.

     

    If you don't see what you want, check to see if there is a "more" link to the right of the "When an item is created or changed" heading in Dynamic properties.  If there is, click it to expose additional properties.

     

    Also, you can compare the Created and Modified columns to determine if the trigger responded to a new item or a change to an item.

  • v-xida-msft Profile Picture
    on at

    Hi @pdrampis,

     

    I have made a test on my side and don't have the issue that you mentioned. The screenshot of my flow as below:15.JPG

    Please take a try to clear cache of your browser and try your flow again to check if the issue is solved.

     

    In addition, you could also access the properties of the item using the following formula:

    triggerBody()?['PropertyName']

    I assume that you want to reference the Created property and Modified property of the item, you could use the following formula:

    Access Created property:

    triggerBody()?['Created']

    Access Modified property:

    triggerBody()?['Modified']

    I have made a test on my side and please take a try with the following workaround:16.JPG

    Within Condition box, click "Edit in advanced mode", type the following formula:

    @equals(triggerBody()?['Created'], triggerBody()?['Modified'])

    The flow works successfully as below:17.JPG

     

     

    More details about using expression in flow actions, please check the following article:

    Use expression in flow actions

     

     

    Best regards,

    Kris

     

     

  • pdrampis Profile Picture
    19 on at

    @v-xida-msftthan you for the answer. I tried, cleaning my cache, I even used another browser but the dynamic content is still the same

     

    Dynamic content

     

    I haven't tried using the expressions you gave me.

    But why am I seeing a different view from you? Could it be something with the list settings?

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