Getting multi-select option set values in workflows

In this article we will see how to get the values of a multi-select option set attribute within a workflow using the community utility Dynamics-365-Workflow-Tools GetMultiSelectOptionSet:

Sample workflow retrieving multi-select option set values

Before getting into the details, notice I have written another couple of articles to copy multi-select options attributes and update 
multi-select options attributes
in workflows.

In our above example, the workflow “Assign task for regulated Opportunities based on Economic Activities” will check the values of the multi-select option set attribute “Economic Activities” and it will assign a task accordingly.

“Economic Activities” options

This custom workflow activity requires the following input parameters:

  • Source Record URL (required): the URL of the record where the corresponding attribute is located.
  • Attribute Name (required): logical name of the attribute whose values are going to be retrieved.
  • Fail on Exception (optional): 
    this is a secondary attribute which allows you to indicate if the activity will throw an exception if something goes wrong or it will just return the error in an output parameter

Dynamics-365-Workflow-Tools GetMultiSelectOptionSet input parameters

The output parameter Selected Values returns a string with the corresponding results separated by comma. So that you can check them using the contains operator for example.

Selected Values output parameter

If you have found this utility helpful and you want to use it, you just need to install the latest version of Dynamics-365-Workflow-Tools and add the GetMultiSelectOptionSet step into your workflow:

Adding GetMultiSelectOptionSet into our sample workflow

2 thoughts on “Getting multi-select option set values in workflows

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s