Forum Discussion
Daniel Westerdale
Sep 12, 2019Iron Contributor
Provision the PnPAlert only from the Starter Kit but this seems to fail with a JavaScript Error
Hi
I have successfully provisioned the starter-kit on our (FR) test tenant and was able to demonstrate the PnPAlert ( application customiser). Next steps are to demonstrate this functionality in another hub site ( on the same tenant).
- created provisioning template from my target site
- In the resultant xml template file I copied the following markup frm starterkit.xml for: site fields, PnP Alert content type , List instance and Custom Actions
- Applied my provisioning script
Connect-PnPOnline -Url $SourceSiteUrl -UseWebLogin
Apply-PnPProvisioningTemplate -path .\my-provisioningTemplate.xml
# for small changes to the script I simply selected the relevant handlers
Apply-PnPProvisioningTemplate -path .\my-provisioningTemplate.xml -Handlers CustomActions
Apply-PnPProvisioningTemplate -path .\my-provisioningTemplate.xml -Handlers Lists​
- Add an Alert item to the Alert List:
- Waited , waited and..... nothing happens
- Did some dfurther checks
Get-PnPCustomAction
Name Location Scope Id
---- -------- ----- --
DiscussNow ClientSideExtension.ListViewCommandSet Web 71cd5d36-f198-4ec2-9dfc-6eab524fc194
AlertNotification ClientSideExtension.ApplicationCustomizer Web 5c92d46c-6c28-48ae-8cf2-f31eb2b37f53
# Also ensured custom scripting works
Connect-SPOService -Url $adminSiteUrl
Set-SPOsite $sourceSiteUrl -DenyAddAndCustomizePages 0
I am obviously missing a dependency but I have no idea what this is.
No RepliesBe the first to reply