powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Set-PnPSiteScript doesn't accept new Power Automate triggerFlow URLs

Open Callum-Munro opened this issue 1 year ago • 13 comments

Reporting an Issue or Missing Feature

This is both an issue and a missing feature - as per this change we need to update our triggerFlow URL values from logic.azure.com to the new Power Automate HTTP trigger URL.

Expected behavior

When using Set-PnPSiteScript to update SiteScript content, we are expecting to replace the old and soon to be deprecated URL with a new Power Automate trigger URL.

Actual behavior

We receive the following error: Set-PnPSiteScript: Action 1 (triggerFlow) is invalid. Parameter url has an invalid value.

Steps to reproduce behavior

  • Retrieve the content of a Site Script.
  • Convert the JSON to a PS Object for amending.
  • Update the triggerFlow URL to a Power Automate trigger HTTP response URL
  • Use Set-PnPSiteScript to apply the updated content.

What is the version of the Cmdlet module you are running?

3.1.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows

Callum-Munro avatar Sep 08 '25 14:09 Callum-Munro

We also run into that issue. Customers get notified about the need to update URLs for their flows, but we are unable to do this using PnP or SPO cmdlets.

msznwska avatar Sep 18 '25 09:09 msznwska

Same issue here. Microsoft forcing change of Flow Trigger URL, but receive error above when attempting to change URL using Set-SPOSiteScript. Using Window 11 (latest updates) and Powershell Admin. i.e. No known ability to make the required change

StephenBoydSG avatar Sep 25 '25 20:09 StephenBoydSG

I got a confirmation from Microsoft Support that this is a SharePoint issue and that the product team is aware and working to resolve it. Hopefully soon.

msznwska avatar Sep 29 '25 09:09 msznwska

I got the same problem

Georg-Trixl avatar Sep 30 '25 12:09 Georg-Trixl

Weeks go by with no meaningful information from Microsoft about the situation. Since support has not been very helpful I have posted my feedback (as they suggested) here: https://feedbackportal.microsoft.com/feedback/idea/22a6e0f3-e0a8-f011-aa44-7c1e52e168a6 Feel free to upvote, follow or comment, if you have any information.

msznwska avatar Oct 14 '25 09:10 msznwska

@msznwska There is a parallel thread at SharePoint/sp-dev-docs#10366

According to that thread @GC-jpellerin appears to believe something should be released later today(??).

StephenBoydSG avatar Oct 15 '25 05:10 StephenBoydSG

@msznwska There is a parallel thread at SharePoint/sp-dev-docs#10366

According to that thread @GC-jpellerin appears to believe something should be released later today(??).

Well that was best timeline I was given by support, but I wouldn't bet on it. The only I can be sure of is there are working on it

GC-jpellerin avatar Oct 15 '25 13:10 GC-jpellerin

Just to confirm I tried this again following the feedback that "all going well" this would be fixed on the 15th, but still the same error occurs.

Callum-Munro avatar Oct 17 '25 08:10 Callum-Munro

@msznwska There is a parallel thread at SharePoint/sp-dev-docs#10366 According to that thread @GC-jpellerin appears to believe something should be released later today(??).

Well that was best timeline I was given by support, but I wouldn't bet on it. The only I can be sure of is there are working on it

That being said, this thread refers to the SPO module, not the PnP module. I assume any fix applied to SPO module would need to be applied to PnP?

Callum-Munro avatar Oct 17 '25 08:10 Callum-Munro

Tried this using updated SPO module and same error. So still not fixed for sure.

Callum-Munro avatar Oct 17 '25 11:10 Callum-Munro

I tried it again today with PnP-PowerShell and it did work with the new PowerAutomate trigger URL. At least from my side this issue can be closed.

Georg-Trixl avatar Nov 04 '25 14:11 Georg-Trixl

Can also confirm this is now working using PnP Powershell

Callum-Munro avatar Nov 05 '25 09:11 Callum-Munro

Can some one tell me what version ?

i have PnP module version 3.1.0. and still have this issue. i tried the latest nighly build still have the same issue

or how to make it work

OG-Michael avatar Nov 13 '25 14:11 OG-Michael