Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UsID with character like + cannot be found. #17

Open
rnieuweveen opened this issue May 21, 2024 · 2 comments
Open

UsID with character like + cannot be found. #17

rnieuweveen opened this issue May 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@rnieuweveen
Copy link
Contributor

When the usId contains for example a + then de url won't work and give 0 results.

It can be fixed by enoding the $correlationValue.

        $correlationValueEncoded = [uri]::EscapeDataString($correlationValue)

        $splatWebRequest = @{
            Uri             = "$($actionContext.Configuration.BaseUri)/connectors/$($actionContext.Configuration.GetConnector)?filterfieldids=$($correlationProperty)&filtervalues=$($correlationValueEncoded)&operatortypes=1"
            Headers         = $headers
            Method          = 'GET'
            ContentType     = "application/json;charset=utf-8"
            UseBasicParsing = $true
        }
@JeroenBL JeroenBL added the bug Something isn't working label Jun 5, 2024
@rhouthuijzen
Copy link
Contributor

@rnieuweveen, can you give a example when this occurs? The correlation value should always be the employeeNumber and this should't contain a "+"?

@rnieuweveen
Copy link
Contributor Author

Please check row 24-26 in the update / enable / disable / delete.ps1 scripts.
$correlationValue = $aRef.Gebruiker # Has to match the value of the unique identifier

$aRef.Gebruiker can contain a + and isn't always updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants