I have the following PowerShell script for creating custom action on a list in a document library.
Connect-PnPOnline -Url "https://[my_tenant].sharepoint.com/sites/[my_page]"
Add-PnPCustomAction -Name 'Test 1' -Title 'Test 1' -Description 'Test 1' -Group 'SiteActions' -RegistrationType 'List' -RegistrationId '101' -Location 'EditControlBlock' -Sequence 3010 -Url 'https://www.google.com'
This works fine and adds a custom action to every library on the SharePoint.
My question now is: How can I add the action only to a specific folder (folder 1) in a specific list (list 2)? The other items should not have this custom action!
- list 1
- folder
- file 1
- file 2
- list 2
- folder 1 <- only this one should have a custom action
- file 1
- file 2
- folder 2
- file 1