Set default values for a cloud catalog form fields
You can set default values for all users or you can populate fields with default values based on conditions. This example shows you how to set a default schedule profile and business service.
Before you begin
Role required: sn_cmp.cloud_service_designer
Before you can follow this example, you should be familiar with creating blueprints and blueprint rules. See these resources:
About this task
The goal of this example is to display a default value for both the schedule profile and the business service field. Each field derives its values differently:
- The schedule profile derives its values from a pool filter that returns a text value. Therefore, you must set the default value by applying the correct, matching text for one of the schedule profile options that appear to the user in a list.
- The business service derives its values from a reference to the Service [cmdb_ci_service] table. Therefore, you must set the value by specifying the Sys ID of the record that you want to display.
The example in this topic sets the values in different ways:
- The schedule profile default value is set directly on the Schedule Profile property and applies to all users without any conditions. You might want to do this to limit the use of virtual resources to specific schedule, such as during business hours only, for all users.
- The business service default value is set using an action on a blueprint rule. You might want to use a rule to set a default value when you want the value to be the default only when certain conditions are met. For example, if the user belongs to a user group that deals with only one business service, set the value for the user so they do not have to sort through a long list of all the business services in your organization.
Procedure
Result
What to do next
You can create a condition or multiple conditions that must be met before the system sets the default value for the business service. For example, you might want to change the default value of business service to Workday Enterprise Services only when the group that the user belongs to is the Workday Admins group.