File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ function Get-CIPPTextReplacement {
3737 ' %programfiles%' ,
3838 ' %programfiles(x86)%' ,
3939 ' %programdata%' ,
40- ' %cippuserschema%'
40+ ' %cippuserschema%' ,
41+ ' %cippurl%'
4142 )
4243
4344 $Tenant = Get-Tenants - TenantFilter $TenantFilter
@@ -83,5 +84,13 @@ function Get-CIPPTextReplacement {
8384 $Schema = Get-CIPPSchemaExtensions | Where-Object { $_.id -match ' _cippUser' } | Select-Object - First 1
8485 $Text = $Text -replace ' %cippuserschema%' , $Schema.id
8586 }
87+
88+ if ($Text -match ' %cippurl%' ) {
89+ $ConfigTable = Get-CIPPTable - tablename ' Config'
90+ $Config = Get-CIPPAzDataTableEntity @ConfigTable - Filter " PartitionKey eq 'InstanceProperties' and RowKey eq 'CIPPURL'"
91+ if ($Config ) {
92+ $Text = $Text -replace ' %cippurl%' , $Config.Value
93+ }
94+ }
8695 return $Text
8796}
You can’t perform that action at this time.
0 commit comments