Is there a way to be able to add variables in this command?
Set-NAVServerConfiguration -ServerInstance $ServiceName -KeyName "DestinationAppsForMigration" -KeyValue '[{"appId":"12345-6789", "name":"Some Name", "publisher": "Some Publisher" }]'
What I would like to have would be something like this:
Set-NAVServerConfiguration -ServerInstance $ServiceName -KeyName "DestinationAppsForMigration" -KeyValue '[{"appId":$TableMigrationExtID, "name":$TableMigrationExtName, "publisher": $TableMigrationExtPublisher }]'
With the $TableMigrationExtID, $TableMigrationExtName and $TableMigrationExtPublisher containing the values.
If I try to run it shows this error
Error
'and"