Provision the PnPAlert only from the Starter Kit but this seems to fail with a JavaScript Error

%3CLINGO-SUB%20id%3D%22lingo-sub-851568%22%20slang%3D%22en-US%22%3EProvision%20the%20PnPAlert%20only%20from%20the%20Starter%20Kit%20but%20this%20seems%20to%20fail%20with%20a%20JavaScript%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-851568%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20successfully%20provisioned%20the%20starter-kit%20on%20our%20(FR)%20test%20tenant%20and%20was%20able%20to%20demonstrate%20the%20PnPAlert%20(%20application%20customiser).%26nbsp%3B%20Next%20steps%20are%20to%20demonstrate%20this%20functionality%20in%20another%26nbsp%3B%20hub%20site%20(%20on%20the%20same%20tenant).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3Ecreated%26nbsp%3B%20provisioning%20template%20from%20my%20target%20site%3C%2FLI%3E%3CLI%3EIn%20the%20resultant%20xml%20template%20file%20I%20copied%20the%20following%20markup%20frm%20starterkit.xml%20for%3A%20site%20fields%2C%20PnP%20Alert%20content%20type%20%2C%26nbsp%3B%20List%20instance%20and%20Custom%20Actions%3C%2FLI%3E%3CLI%3E%26nbsp%3BApplied%20my%20provisioning%20script%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3EConnect-PnPOnline%20-Url%20%24SourceSiteUrl%20-UseWebLogin%0AApply-PnPProvisioningTemplate%20-path%20.%5Cmy-provisioningTemplate.xml%0A%0A%23%20for%20small%20changes%20to%20the%20script%20I%20simply%20selected%20the%20relevant%20handlers%0AApply-PnPProvisioningTemplate%20-path%20.%5Cmy-provisioningTemplate.xml%20-Handlers%20CustomActions%0AApply-PnPProvisioningTemplate%20-path%20.%5Cmy-provisioningTemplate.xml%20-Handlers%20Lists%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%26nbsp%3BAdd%20an%20Alert%20item%20to%20the%20Alert%20List%3A%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F131468i40656B1D2E0F2DE5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Alert%20item.png%22%20title%3D%22Alert%20item.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%26nbsp%3BWaited%20%2C%20waited%20and.....%20nothing%20happens%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsad_40x40_1.gif%22%20alt%3D%22%3Asad%3A%22%20title%3D%22%3Asad%3A%22%20%2F%3E%3C%2FLI%3E%3CLI%3E%26nbsp%3B%3C%2FLI%3E%3CLI%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F131464i04A337AA428494C1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Issue%20wih%20GroupComms%20site.PNG%22%20title%3D%22Issue%20wih%20GroupComms%20site.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3EDid%20some%20dfurther%20checks%26nbsp%3B%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EGet-PnPCustomAction%0A%0AName%20%20%20%20%20%20%20%20%20%20%20%20%20%20Location%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Scope%20Id%0A----%20%20%20%20%20%20%20%20%20%20%20%20%20%20--------%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20-----%20--%0ADiscussNow%20%20%20%20%20%20%20%20ClientSideExtension.ListViewCommandSet%20%20%20%20Web%20%20%2071cd5d36-f198-4ec2-9dfc-6eab524fc194%0AAlertNotification%20ClientSideExtension.ApplicationCustomizer%20Web%20%20%205c92d46c-6c28-48ae-8cf2-f31eb2b37f53%0A%0A%23%20Also%20ensured%20custom%20scripting%20works%0A%20Connect-SPOService%20-Url%20%24adminSiteUrl%0A%20Set-SPOsite%20%24sourceSiteUrl%20-DenyAddAndCustomizePages%200%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20obviously%20missing%20a%20dependency%20but%20I%20have%20no%20idea%20what%20this%20is.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-851568%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Regular Contributor

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).

 

  1. created  provisioning template from my target site
  2. 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
  3.  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:
  • Alert item.png
  •  Waited , waited and..... nothing happens:sad:
  •  
  • Issue wih GroupComms site.PNG
  • 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. 

 

 

0 Replies