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:
- I started from a blank template.
- 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"
- 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"
In 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