When a new record gets created, a Flow creates a sharepoint folder with the primary field as name. When I change the primary field of that record, I want my sharepoint folder to changes names to the new value of the primary field, as of now I do this by using a second flow. I register the url of the sharepoint folder (which contains the path of the folder). My (second) flow gets triggered when a primary field value gets changed. I'm glad as my url with folder path doesn't get adjusted on the spot, because I need the previous value of my primary field to find the folder that should be adjusted. The actual changing of the folder name happens with an HTTP request, where I enter the folder path.
This works for now but isn't flawless. I know I can retrieve a shareable link of the folder with a flow, this link doesn't change when the sharepoint folder name gets changed. Is there a way I can use this shareable link to change the folder name or find the folder when using the HTTP-request instead of using the url with folder path? Thank you.