Hi all,
So I have this 5 step process where the third step will run a PowerShell script that connects to EntraID and gets a Group ID. This group ID is then passed on to the next step in the process.
This script used to work with the AzureAD PowerShell module, but since that cannot be used anymore, the script was rewritten to use the Microsoft Graph modules.
Because the OneID job server uses a very old version of the Graph.Core dll, we had issues authenticating against Graph, so we used the workaround
Value = String.Format ("powershell -Command " & "script.ps1 -GroupName {0}",$CustomProperty01$)
This runs fine, but the value that is returned by the script is now no longer passed on to the next step in the process. This used to work fine with the old script.
I have tried to output the value to StdOut, which seems to work, but the next step in the process then keeps complaining that there are line breaks in the value (there are not).
I have used several different ways in the lower process step to Replace any invisible line breaks with nothing, but no matter what I do, the error stays the same.
My current setup is as follows:
val_CustomProperty04:
Dim dirtyOut = "&OUT(StdOut)&"
Dim cleanOut = dirtyOut.Replace(vbLf, "").Replace(vbCr, "")
cleanOut = cleanOut.Replace(" ", "")
Value = cleanOut
This always results in:
The value 'Spare field no. 04' must not contain line breaks.
How can I get rid of these line breaks? Or if they aren't there, how can I have the system accept the value in StdOut?
Thanks,
Arjan