Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

  • pdrampis Profile Picture
    19 on at
    Re: What is the output of trigger "SharePoint - When an item is created or modified"

    @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?

  • v-xida-msft Profile Picture
    on at
    Re: What is the output of trigger "SharePoint - When an item is created or modified"

    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

     

     

  • ScottShearer Profile Picture
    25,228 Most Valuable Professional on at
    Re: What is the output of trigger "SharePoint - When an item is created or modified"

    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.

  • leyburn19 Profile Picture
    2,157 on at
    Re: What is the output of trigger "SharePoint - When an item is created or modified"

    This wil triiger based on that criteria

    SP Triggers.PNG

     

     

     

  • pdrampis Profile Picture
    19 on at
    Re: What is the output of trigger "SharePoint - When an item is created or modified"

    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
    Re: What is the output of trigger "SharePoint - When an item is created or modified"

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

     

    Capture.PNG

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492