Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Dynamic Project ID / Project Site

We are currently running a PoC of Project Online, and one requirement that's been identified is the ability to automatically create tasks in the project plan when items are added to the Actions and Decisions logs we've created in the project sites.


We've been able to automate this using the template Flow, and have been able to add a conditional step that means the Flow only runs if the user has checked a 'create task?' box when creating the item in the Actions log. Becuase the template requires you to manually define the enterprise project ID and the name of the SharePoint site and list it should monitor for new items, it's looking like we would have to manually create this Flow for every new project every time a new project is created.


Is it possible to dynamically identify the name of the current site, and the Enterprise ID of the project associated with that site? If we could capture those and use that variable in our Flow, we could create it once against the site template and when new sites are created would already exist against the new site and be able to identify which project's schedule tasks should be created in.


(As an extra, I anticipate the next question from my users will be 'will it automatically mark the Actions log closed when the task is complete - I presume a similar Flow could be created to watch certain tasks and update linked attributes in the list item?) 


Thanks in advance,

Community Support Team
Community Support Team

Re: Dynamic Project ID / Project Site

Hi @maxwellingham,


There is no way to dynamically identify the name of the current site and the the Enterprise ID of the project  associated with that site in Microsoft Flow currently.

If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:


Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,196)