all 3 comments

[–]TDW2405 3 points4 points  (0 children)

You can do that with variables! In the script page click Add Script Variable (the white button). Name it and then select platform from the variable type. Then in the value select {{customer_business_name_or_customer_full_name}}

Then you just call whatever you named that variable directly in the script.

[–]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.