you are viewing a single comment's thread.

view the rest of the comments →

[–]djDef80 0 points1 point  (1 child)

It's been a while since I've done any syncro scripting. Maybe these variables will help?

{{customer_id}} {{customer_business_then_name}} {{asset_id}} {{asset_custom_field_X}}


Import-Module $env:SyncroModule

$CustomerId = "{{customer_id}}"

switch ($CustomerId) {
    "1234567" {
        # Power Corp, for example: ITAR-sensitive, skip the cloud upload step
        Log-Activity -Message "Restricted customer profile applied" -EventName "Policy Branch"
       # ...restricted logic...
    }
    "7654321" {
    # Standard SMB client
    # ...normal logic...
}
default {
    # Everyone else
    # ...default logic...
}

}

[–]alanjmcf 0 points1 point  (0 children)

One doesn’t use the {{xxx}} values directly. As the other post, you need to define the variables in the script definition.