cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GeorgeAnderson
Regular Visitor

New Trigger for Changes to a Column in an Item in SharePoint Fails

A new trigger has just been released. A video tutorial posted by @Chakkaradeep is found at Video Walkthough of New Trigger/Action. This is meant to allow you to trigger when a column within an item in SharePoint changes, not just when the item changes anywhere in it.

 

I attempt to set up the flow to detect when the Status column changes and then send an email. However it fails for me.
The error message is: sinceInput not specified.

 

Here's the attempt:

 

 

When an existing item is modifiedWhen an existing item is modified

 

Get changed for an itemGet changed for an item

Since = Trigger Window Start Token

Until = Trigger Window End Token

 

 

In the Select an output field AND in the first of the two conditions the Dynamic Content choice is Has Condition Changed: Status

 

 

Error message received:

 

InputsInputs

 

 

What am I missing?

1 ACCEPTED SOLUTION

Accepted Solutions

Found it!!!

 

I wrote this flow starting from a template, thinking that the first step was the same as the new trigger... it was not!

 

Therefore, I was using an old trigger:

When an existing item is modified

 

@Pstork1 and others on the forums were using the new trigger:

When an item or a file is modified

 

I thought I was using the new trigger... but I was not. My eye thought they were the same...
It does works properly, as advertised, when using the correct trigger.

 

So, if you use the wrong combination:

When an existing item is modified

with

Get Changes for an item or a file (properties only)

You will get the error: sinceInput not specified

 

This reminds me of the old days of "Bad command or file name" which could mean 31 different things. I do wish error messaging could be more revealing as to what the problem actually is. @Chakkaradeep you might put this in the documentation for the new trigger.

View solution in original post

20 REPLIES 20
Pstork1
Dual Super User
Dual Super User

First, is the Status column included in the view you are using for the trigger and the action?

Second, is versioning enabled for the list?

 

Also, could you show us the condition statements you are using to check for changes?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@Pstork1 ,

 

I made a reply to your questions and got a message that my reply was marked as spam and removed. I'll try again without any screenshots.

 

First: Yes. The Status column is included in the view that I'm using.

Second: Yes. Versioning is enabled for the list.

Third: The condition is shown, but I'll type it out for clarity

 

Has column changed:Status is equal to true

AND

Status Value is equal to Draft

 

What I do then... Save the item with a status NOT equal to Draft (one of the other status possibilities on the drop down). Then, go into the item again and save the item with the status equal to Draft. And, then, I get the error message.

I didn't try with a second condition (status value = draft), but it does work for me with just the main condition.  I'll add checking for a specific value and let you know.  But the screenshot stops at the end of the Get Changes.  The error is shown, but not the definition of the condition.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I just tried with both conditions and its working for me.  Can you show me the definition of your condition statements?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@Pstork1 ,

 

OK. Hold the horses!

 

Your screenshot shows an "fx true", mine just has the text "true" typed in the field (you couldn't see mine cuz they labeled my first reply as spam and removed it). Can you explain your fx true, and why that instead of just text "true"? In the tutorial video that @Chakkaradeep created and posted, he only used the text "true" not the fx true. Is fx true important for some reason, or is it equivalent to the text "true"?

 

Also, you didn't put your condition inside a Apply to Each box. The video did... so I did... though I don't know why or what exactly the Apply to Each does for me in this situation. Now looking back at the video again, @Chakkaradeep was talking about getting the collection of changes from an item, but then he kind of faded out on that discussion, maybe abandoned that line of thought, and then switched to another demo. Very confusing to me! I thought the point was that you need to capture all of the changes of an item in order for this all to work... but... maybe not.

@Pstork1 ,

 

So, I modified my flow to be more like yours, rather than what was in the first part of the tutorial by @Chakkaradeep .a

 

It fails on the 2nd step before it ever gets to the conditional

 

Here's what the General steps are now:

2nd try - General Steps2nd try - General Steps

Here's the Step 1 Detail:

2nd Try - Step 1 Detail2nd Try - Step 1 Detail

Here's the Step 2 Detail (where it fails):
2nd Try - Step 2 Details2nd Try - Step 2 Details

When run it fails on Step 2 with this message:
Try 2 - Error messageTry 2 - Error message

 

I could show you the inputs and outputs of the first two steps, but I'm concerned the Moderator is going to call this spam and deleted, maybe because of too many screenshots. Let me know if you want to see the inputs and outputs, or can you see the problem without that?

1) When trying to compare to a boolean I find it best to use the true or false expression rather than a literal.  The literal will work, but it is actually a string, not a boolean and the automatic cast seems to be case sensitive.  So whenever testing against a boolean I always enter the value via the expressions tab to make sure I'm getting a boolean value and not a string.

 

The apply to each isn't really needed if you are using a singular trigger.  The trigger fires when one item is modified and i'm just testing the one item to see if the column changed.  I don't remember whether the video used a loop or not, but its not necessary unless you are doing a recurrence flow and retrieving multiple items.  You do get all the changes for that one item, but its not in a collection.  They show as independent values.  They may have been a collection of changes in an earlier version of the trigger.  @Chakkaradeep has been working with that trigger since its earliest inception.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I'm assuming your list is set for both major and minor versions.  I would try setting the second step to include minor versions = Yes.  If its ignoring minor versions it may not find any changes even though changes occurred, but were stored as a minor version.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Found it!!!

Found it!!!

 

I wrote this flow starting from a template, thinking that the first step was the same as the new trigger... it was not!

 

Therefore, I was using an old trigger:

When an existing item is modified

 

@Pstork1 and others on the forums were using the new trigger:

When an item or a file is modified

 

I thought I was using the new trigger... but I was not. My eye thought they were the same...
It does works properly, as advertised, when using the correct trigger.

 

So, if you use the wrong combination:

When an existing item is modified

with

Get Changes for an item or a file (properties only)

You will get the error: sinceInput not specified

 

This reminds me of the old days of "Bad command or file name" which could mean 31 different things. I do wish error messaging could be more revealing as to what the problem actually is. @Chakkaradeep you might put this in the documentation for the new trigger.

That's one of the problems starting with templates.  They can be great learning instruments, but they are a snapshot in time and as things change, they don't.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

We are attempting to refactor simple SP OnPrem Leave Calendar Workflows to SP online using Power Automate. Does anyone know how to use the 'column changed' feature within a single flow that is based on the “When an item is created or modified’ trigger?

I've created both types of flows and both worked (as described here) but this ends up duplicating a large set of the follow-on actions after the column-change logic. I’d prefer to put all the logic in one flow for when an item is created and when it is changed (simple CRUD using DRY principle as much as possible).

When we use the 'When Item is created or modified' trigger then add a step for 'Get changes for an item or file (properties only)', the flow errors when tokens are used. Using the 'version trick' or Modified date will not work due to firing orders -- the SLA does not guarantee version 5 will fire after version 3 or that Modified on is accurate. If fact, I've watched version 5 fire before version 3 (mileage/version numbers may vary).

We are attempting to refactor simple SP OnPrem Leave Calendar Workflows to SP online using Power Automate. Does anyone know how to use the 'column changed' feature within a single flow that is based on the “When an item is created or modified’ trigger?

I've created both types of flows and both worked (as described here) but this ends up duplicating a large set of the follow-on actions after the column-change logic. I’d prefer to put all the logic in one flow for when an item is created and when it is changed (simple CRUD using DRY principle as much as possible).

When we use the 'When Item is created or modified' trigger then add a step for 'Get changes for an item or file (properties only)', the flow errors when tokens are used. Using the 'version trick' or Modified date will not work due to firing orders -- the SLA does not guarantee version 5 will fire after version 3 or that Modified on is accurate. If fact, I've watched version 5 fire before version 3 (mileage/version numbers may vary).

The problem is that by definition there are no changes when you first create an item.  That's why you are getting errors.  You'll either need to build two flows or find some way to differentiate whether its triggered by a modification or creation.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you for the comment @Pstork1. I started to state the obvious in my quest for a solution, but I didn't want to waste anyone's time. The actual issue is the lack of 'Windows Token' during the CREATE operation. Completing web workflow products mark all non-null values as changed during the CREATE operation - nothing new. IMHO, larger organizations with hundreds of departments will not be able to sustain two or three flows per Leave Calendar (i.e. Create flow, Modify flow, Delete flow, etc.). In our case, that’s over 240 flows for only Leave Calendar implementations.

Not really my place to discuss whether the design is lacking or not since I didn't write the code.  Just trying to explain the error.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hello @GeorgeAnderson,

Went through your post and also the video demo by @Chakkaradeep.

Does this mean that "Get Changes for an item or a file (properties only)" is only supposed to be working with the trigger "When an item or a file is modified"?

I have an existing flow which runs every 24 hours with a recurrence as a trigger. I want to find if the items were changed in the past 24 hours. I tried to use "Get Changes for an item or a file (properties only)" with Since = Trigger Window Start Token. This is not supposed to work which you described.

I also tried with Since = getPastTime(24,'Hour'), hoping to get the changes. However this also returns the same error as yours.

 

Can you please help?

Thank you

Yes, you are correct. It only works with the modified trigger and will not work with the recurrence trigger.  You can check the Modified Date/Time to see if it was modified in the last 24 hours, but you won't be able to get the specific columns that were changed.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I am getting the same exact error (sinceInput not specified) but I have the correct trigger "When an item or a file is modified" . What am I missing?

Helpful resources

Announcements

Register now for the Business Applications Launch Event | Tuesday, April 4, 2023

Join us for an in-depth look into the latest updates across Microsoft Dynamics 365 and Microsoft Power Platform that are helping businesses overcome their biggest challenges today.   Find out about new features, capabilities, and best practices for connecting data to deliver exceptional customer experiences, collaborating, and creating using AI-powered capabilities, driving productivity with automation—and building towards future growth with today’s leading technology.   Microsoft leaders and experts will guide you through the full 2023 release wave 1 and how these advancements will help you: Expand visibility, reduce time, and enhance creativity in your departments and teams with unified, AI-powered capabilities.Empower your employees to focus on revenue-generating tasks while automating repetitive tasks.Connect people, data, and processes across your organization with modern collaboration tools.Innovate without limits using the latest in low-code development, including new GPT-powered capabilities.    Click Here to Register Today!    

Power Platform Connections - Episode 5 | March 16, 2023

Episode Five of Power Platform Connections sees David Warner and Hugo Bernier talk to Vice President of Power Automate, Stephen Siciliano, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show!      Show schedule in this episode:  0:00 Cold Open  0:34 Show Intro  01:09 Stephen Siciliano Interview  30:42 Blogs & Articles  31:06 PnP Weekly Ep 200  32:51 SharePoint Custom Form Backup  33:38 Power Apps Extreme Makeover  34:56 ChatGPT Control  35:35 Color Data  37:17 Top 7 Features on Dynamics 365 2023 Release Wave 1  38:30 Outro & Bloopers  Check out the blogs and articles featured in this week’s episode:    https://pnp.github.io/blog/microsoft-365-pnp-weekly/episode-200/​ (no tags)   https://grazfuchs.net/post/sharepoint-customform-backup/ @Maximilian Müllerhttps://www.fromzerotoheroes.com/ @Kristine Kolodziejski​ https://github.com/Power-Maverick/PCF-Controls/tree/master/ChatGPTControl @DanzMaverick https://yerawizardcat.com/color/ ​ @CatSchneider https://events.powercommunity.com/dynamics-power-israel/ @VictorDantas  Action requested: Feel free to provide feedback on how we can make our community more inclusive and diverse.  This episode premiered live on our YouTube at 12pm PST on Thursday, 16th March 2023.  Video series available at Power Platform Community YouTube channel.    Upcoming events:  Business Applications Launch – April 4th – Free and Virtual! M365 Conference - May 1-5th - Las Vegas Power Apps Developers Summit – May 19-20th - London European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas  Join our Communities:  Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community  If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.     

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.    Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218   tom_riha      theapurva        Akash17        BCLS776        rampprakash        Rusk        cchannon        a33ik        AaronKnox        Matren        Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas        If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Top Solution Authors
Users online (4,496)