Ravi
Ravi
Same issue... ``` Add-PnPClientSideWebPart : Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index ```
I may have done something to fix this. Please spare me a few minutes to dig out the script..wont be long
@kyle-herrmann Here you go.... `function Add-WebPart($webPartName,$webpartprops,$page){ #add feedback component. Uses $feedbackListPropsJSON Start-Sleep -Seconds 5 $appDetails = $null $appDetails = Get-PnPApp -Identity "$webPartName" -ErrorAction SilentlyContinue #if app is not installed, first...
OK. I may have a solution for your problem. What are you actually trying to do ?
I have added a list on my modern page using the script you provided at the top and it worked for me
Can you print $webPart.Section $webPart.Column $webPart.Order ?
Hero wont work @kyle-herrmann Add-PnPClientSideWebPart -DefaultWebPartType **List** -page $page -WebPartProperties $options -Section 1 -Column 1 -order 1;
I've used list and it worked
Also, there might be some issue with adding web parts to home pages. What you can do is create a dummy page and set it as home page. Now in...