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 Apps / Flow and triggerbody()
Power Apps
Answered

Flow and triggerbody()

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need a Flow to start on a new item and a created item, I see you can start a flow on When an item is created and When an item is created or modified but not When an item is modified so I thought a Switch would be best but cannot figure out what Equals should be for the Case fields.  I am assuming I can Switch on @triggerbody some how.  I would like the Case equals "Created" and Case equals "Modified" Is this possible?  

Categories:
I have the same question (0)
  • xyzzyx666 Profile Picture
    170 on at

    Hi @Anonymous,

     

    Yes, you can use one condition to judg whether this item is modified or created.

    If add one new item it is created,if you change the content of one item it is modified. 

    I have use one SP list and create the flow to test as the screenshots.

    Fistly,create the SP list as the data source and trigger.

    20181218flow1.png

    Secondly,create the flow using the condition: Modified is equal to Create

    If Yes, output:item created

    If No, output:item modified

     

    20181218flow2.png

    Then modify or create the item in the list to test:

    When I create one new item:d

    20181218flow3.png

    the flow output:item created

    20181218flow4.png

    then change the title "d" to "c",

    20181218flow5.png

    the flow output:item modified

    20181218flow6.png

    Hope this can be helpful.

    Best wishes,

    xyz

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

    Hi @Anonymous,

    Do you want to trigger/fire a flow only when an existing item is modified within your SP list?

    The "When an item is modified" trigger has been removed from the SharePoint connector, instead, you need to use the "When an item is created or modified" trigger to detect if there is an item has been modified in your SP list.

    If you want to fire/trigger your flow only when an existing item is modified within your SP list, as an alternative solution, I have made a test on my side, please take a try with the following workaround:3.JPG

     

    2.JPG

    Please take a try with above solution, then check if your issue is solved.

    Note: When a new item is created in your SP list, the flow would be fired but do nothing. If an existing item is modified in your SP list, the flow would be fired and execute the actions you defined within the "If no" branch of the Condition.

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, this works fine.  It's the "Created is equal to Modified" that confuses me. I don't get the logic.

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

    Hi @Anonymous,

    Have you solved your problem?

    If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

     

    Best regards,

    Kris

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard