Open jmmartinez84 opened 6 years ago
Hi, I think that you can use 'Parameters' property directly in ProvisioningTemplate object:
I think that you can use 'Parameters' property directly in ProvisioningTemplate object:
The Parameters property is read-only on the ProvisioningTemplate
object.
@jmmartinez84 did you ever find a solution? I am in a similar situation where I need to add parameters at runtime.
@SpliceVW Yes, it is read-only (getter), but you can still use it to add your parameters:
pnpTemplate.Parameters.Add(key,value);
@siata13 doh! Thanks, worked like a charm.
Still, would probably nice to have a utility function when applying the template (similar to the PowerShell cmdlet) rather than having to manipulate the template.
Hi there, I'm able to pass parameters to provisioning template using powershell script using -Parameters option
Apply-PnPProvisioningTemplate -Web $web -Path $path -Parameters @{"xxx"=$xxx;"yyy"=$yyy;"zzz"=$zz;}
But I don't kno how to do the same using CSOMnewWeb.ApplyProvisioningTemplate(template, info);
thanks in advance