cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bernabasket
Resolver I
Resolver I

Sharepoint Trigger | When a File is Created in a Folder | Use of Environment Variables

Hi,

 

I'm building a flow under a solution context and would like to use Environment Variables for anything that might change accordingly to running environment (DEV, QUA, PRD, etc).

 

The trigger I pretend to use is: Sharepoint | When a File is Created in a Folder:

bernabasket_0-1661248134195.png

 

I would like to use environment variables both for Site Address and Folder ID, but I'm struggling with the Folder ID variable, for which apparently you need to specify some kind of internal folder ID and not the path.

 

Any suggestion to have a dynamic folder ID based on an environment variable?

 

Thanks,

Bernardo

 

1 REPLY 1
okeks
Super User
Super User

You can get the internal ID with the REST call described:

Get Folder Item ID using REST API in SharePoint (c-sharpcorner.com)

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,412)