SOLVED

How to trigger a flow when a specific custom filed data is added or changed in project online?

%3CLINGO-SUB%20id%3D%22lingo-sub-3251830%22%20slang%3D%22en-US%22%3EHow%20to%20trigger%20a%20flow%20when%20a%20specific%20custom%20filed%20data%20is%20added%20or%20changed%20in%20project%20online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3251830%22%20slang%3D%22en-US%22%3E%3CP%3Eex%3A%20In%20Power%20automate%20the%20flow%20will%20run%20based%20on%20this%20trigger%20%2Cwhen%26nbsp%3B%20a%20project%20is%20published.%26nbsp%3B%20I%20had%20a%20custom%20filed%20Project%20Level%20Entity%2C%20custom%20filed%20name%20is%20%3CSTRONG%3EQuantity%3C%2FSTRONG%3E%20that%20is%26nbsp%3B%20tagged%20in%20a%20project%20detail%20page.%3C%2FP%3E%3CP%3EWhenever%20the%20end%20user%20enter%20the%20data%20in%20Quantity%20custom%20filed%20%2Cflow%20has%20to%20trigger%20based%20on%20this%20filed.%3C%2FP%3E%3CP%3EEx%3A%20Quantity%20%3A10%20(flow%20has%20to%20run)%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bif%20the%20Quantity%20value%20gets%20changed%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20Quantity%20%3A%2020%26nbsp%3B(flow%20has%20to%20run)%3C%2FP%3E%3CP%3EI%20am%20creating%20a%20project%20snapshot%20using%20Sp%20list%20%26amp%3B%20power%20automate.%20I%20just%20want%20to%20track%20that%20custom%20filed%20data%20in%20project%20online.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3251830%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOnline%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProject%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProject%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3252256%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20trigger%20a%20flow%20when%20a%20specific%20custom%20filed%20data%20is%20added%20or%20changed%20in%20project%20online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3252256%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F983519%22%20target%3D%22_blank%22%3E%40Anil_kumar%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThere%20isn't%20a%20Power%20Automate%20flow%20trigger%20for%20a%20field%20change%20for%20Project%20Online%2C%20all%20you%20can%20do%20is%20fire%20the%20flow%20when%20the%20project%20is%20published.%20If%20you%20are%20tracking%20the%20data%20in%20an%20SP%20list%2C%20you%20could%20compare%20the%20data%20in%20the%20project%20and%20the%20latest%20record%20in%20the%20SP%20list%20to%20see%20if%20the%20field%20value%20changed%20or%20not.%3C%2FP%3E%0A%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

ex: In Power automate the flow will run based on this trigger ,when  a project is published.  I had a custom filed Project Level Entity, custom filed name is Quantity that is  tagged in a project detail page.

Whenever the end user enter the data in Quantity custom filed ,flow has to trigger based on this filed.

Ex: Quantity :10 (flow has to run)

     if the Quantity value gets changed

    Quantity : 20 (flow has to run)

I am creating a project snapshot using Sp list & power automate. I just want to track that custom filed data in project online.

7 Replies
best response confirmed by Anil_kumar (Contributor)
Solution

Hello @Anil_kumar ,

There isn't a Power Automate flow trigger for a field change for Project Online, all you can do is fire the flow when the project is published. If you are tracking the data in an SP list, you could compare the data in the project and the latest record in the SP list to see if the field value changed or not.

Paul

Thanks for the response & for the suggestions @Paul Mather ,

In power automate, I am facing some logical issues for this flow. The flow shows successfully run but the condition is not executing Paul. Please suggest the steps for this flow, That would be a great help d1.pngd2.png

Hi @Anil_kumar ,

This will be quite tricky to debug via the forum. How come you are doing to calls to SharePoint then doing two foreach loops - one for each data set returned from the SP actions? If you are comparing Project A from PWA and Project A from the SP list, I would expect just one SP action to get the latest record from the SP list for Project A so you can compare that?

Paul

Sorry for the late response paul,
This 2nd question will fit to this scenario.
If you are comparing Project A from PWA and Project A from the SP list, I would expect just one SP action to get the latest record from the SP list for Project A.
In the flow what I did is ,for ReadallProjects action i used one apply to each action ,where as to compare each record in SharePoint list I used condition action ,but when I insert the SharePoint column name........the flow is automatically creating the another apply to each action. Here i am facing the issue.

Hello @Anil_kumar ,

What is ReadAllProjects querying / returning? What is the Get Items querying / returning? 

Power Automate will add in the Apply to each loop when the previous action returns an array of results and you are trying to use that dataset. "Get Items" assumes many items will be returned, hence the apply to each loop, where as "Get Item" will just return 1 item so no loop required. So you'd need to find the latest record for the published project from the SharePoint list, then compare that data with the live project.

Paul

Whatever you said is correct paul,
1. ReadallProjects(send an http request) returning the project level custom fields data
/_api/ProjectData/Projects()?$Select=ProjectName,Quantity
Ex: It returns 10 Projects from PWA
2. GetItems action returning the sharepoint list data .
Ex: It returns 5 row items
Projects Quanity
A 10
B 20
c 10
d 5
e 7
You are suggesting to use the Get item action , but in get item action we have to mention the SharePoint id right?That id i am taking form the get items action
Eventhough when i am taking the getitem returned column, the flow is automatically adding the apply to each 2 again.
I have to explore on the logical part paul. Thanks for the suggestions

Hello @Anil_kumar ,

That is correct, when using the "Get Item" action, you will need to pass in the list item ID for the project record from the SP list that you want to compare with the live project from PWA.

Paul