Set-PnPSiteScript doesn't accept new Power Automate triggerFlow URLs
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
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.
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
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.
I got the same problem
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 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(??).
@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
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.
@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?
Tried this using updated SPO module and same error. So still not fixed for sure.
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.
Can also confirm this is now working using PnP Powershell
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