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 / sharepoint trigger 'Wh...
Power Automate
Answered

sharepoint trigger 'When an Item is created or modified' does not return ID

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I'm trying to use the trigger mentioned in the title. The first thing i want to do is get prior versions of the changed item by making a sharepoiint rest call. But the trigger does not expose the ID of the item that was just modified? How are we supposed to work with it without an Id.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I think ist because the ID is a number and Im trying to use it in the url for a 'Send http request'

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried to fix it by converting the id to text like this:

    Capture.PNG

    but now i get an error saying Unable to process template language expressions in action 'Send_an_HTTP_request_to_SharePoint' inputs at line '1' and column '2334': 'The template function 'text' is not defined or not valid.'.

     

    any ideas?

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    I think there is something issue with the Uri that you specified within the Uri field of the "Send an HTTP request to SharePoint" action.

     

    In addition, the text() function is not supported in expressions of Microsoft Flow currently. More details about the expressions supported in Microsoft Flow currently, please check the following article:

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference

     

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

    The flow works successfully as below:23.JPG

     

     

    If you could not find the ID dynamic content of the trigger, please consider take a try to click "See more" button within the "When an item is created or modified" trigger section of right Dynamic content tab, then check if the ID dynamic content has been shown up:21.JPG

     

     

    In addition, you could also type the following formula within the Uri field of the "Send an HTTP request to SharePoint" action:

    _api/web/lists(guid'7adab573-9d27-4129-abc0-faca0ae45fe8')/items(@{triggerBody()?['ID']})/versions

    22.JPG

     

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks, I never noticed that See More button. I click that and I can get the ID.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard