Hello,
I’m using the Powershell module to setup a document and I’m stuck on the format for the value for AutofillMappingX
I created an example in RoyalTS and looked at the connection file and got this value from the AutofilMappingX field, but putting that into the value for Powershell upsets RoyalTS.
From example in connection file:
<AutoFillMappingX>{\{"Mode":"ReplaceValue","Name":"user","Selector":"input[name=user]","ReplacementValue":"$EffectiveUsername$","Result":0}};{\{"Mode":"ReplaceValue","Name":"password","Selector":"input[name=password]","ReplacementValue":"$EffectivePassword$","Result":0}}</AutoFillMappingX>
My Powershell snipet:
$mapping='{\{"Mode":"ReplaceValue","Name":"user","Selector":"input[name=user]","ReplacementValue":"$EffectiveUsername$","Result":0}};{\{"Mode":"ReplaceValue","Name":"password","Selector":"input[name=password]","ReplacementValue":"$EffectivePassword$","Result":0}}'
$newConnection.AutoFillMappingx = $mapping
When viewing the autofill properties for the resulting connection
Exception:
Invalid property identifier character: . Path ‘’, line 1, position 1.
Thanks!