This documentation supports the 26.1 version of BMC Helix Digital Workplace Basic and BMC Helix Digital Workplace Advanced. Icons distinguish capabilities available only for the Advanced and External license levels. For more information, see the License types and features topic. To view an earlier version, select the version from the Product version menu.

 

Creating service request URLs with pre-filled questionnaire fields


As a catalog administrator, create a URL with prefilled answers to questionnaires that can help users submit requests faster without manually entering information. With this capability, manual input for the user is minimized when they submit requests. Additionally, consistency is maintained during data entry, making it simple to embed request links to portals or share them through email and other communication channels.

You can use the following methods to share the URL with users:

  • Embed the URL in a portal or on Studio pages
  • Share the URL through email or over your official messaging application, such as Teams

After receiving the prefilled forms, users can change any values on the form. Prefilled answers serve as default answers that users can change.

Supported browsers

  • Google Chrome (latest versions)
  • Mozilla Firefox
  • Microsoft Edge
  • Safari (for macOS)

Constructing the URL

As an administrator, you must understand the items required to construct a URL and the template to construct the URL.

Items required to construct a URL

The following items are required to construct a URL:

  • The service version ID
  • Unique question aliases for each question in the questionnaire

Obtaining a service version ID

You can obtain the service version ID in one of the following ways:

  • From the temporary URL that is generated by clicking a Digital Workplace service.
    service_id.png
  • By using BMC Helix Innovation Suite. Perform the following steps:
    1. In BMC Helix Innovation Suite, go to the Data editor (ServiceSearchCache) page.
    2. Filter the records by using the ServiceNameVersion and RevisionState = Published filters.
    3. Obtain the service version from the ServiceVersionID column.
      service_id.png

URL template

As a catalog administrator, you can use the following template to construct a URL:

dwp/api/service/create?versionId=<ServiceVersionID>&<questionAlias1>=<answer1>&<questionAlias2>=<answer2>

where:

  • versionId identifies the catalogue service version
  • <questionAlias> corresponds to the unique alias for each questionnaire field
  • <answer> is the value to be prefilled

You can configure the URLs for multiple-choice questions by repeating the alias with different values, for example:

...?alias=option1&alias=option2

If multiple questions share the same alias, the questions receive the same answer.

You can specify aliases when you design questions as shown in the following image:

alias_names.png

For more information about creating an alias, see Designing workflows for a repeatable group of questions.

Example

Refer to the following example to understand how to construct the URL.

Information

Example

Hannah, the catalog administrator at Apex Global, creates the VPN Access Request catalog service. The questionnaire includes the following questions:

  • Access Type: (Full, Limited)
  • Duration
  • Reason for Access

The IT team at Apex Global wants a link that opens a request form that is prefilled with the answers. To create a form with prefilled answers, Hannah identifies and configures the following details:

QuestionAliasAnswer value

Access Type: (Full, Limited)

access_typeFull
Durationduration30 Days
Reason for AccessreasonRemote Work

She identifies the service version ID as 33445.

Based on this information, she constructs the following URL:

/dwp/api/service/create?versionId=33445&access_type=Full&duration=30%20Days&reason=Remote%20Work\

Supported question types

The following question types are supported:

  • Check box
  • Counter
  • Date and time
  • Dropdown  - Single and multi select
  • Lookup
  • Table - Single and multi select
  • Radio button
  • Text area
  • Text field
  • Time
  • Toggle

The following types are not supported

  • Description
  • document
  • File attachment
  • Password
  • Section
  • Repeatable group questions

Related topics

Defining navigation through links in pages

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Digital Workplace 26.1