(WAL) – Workflow Example – Create All Resource Set for a New Resource

This post has been republished via RSS; it originally appeared at: Core Infrastructure and Security Blog articles.

First published on MSDN on Jan 26, 2016

In this Workflow Example we will demonstrate how to use the MIM WAL to build a Workflow that can be used to create a set in the FIM / MIM Portal that is an All Resources Set. When Creating a new Resource in the FIM / MIM Portal it is important to remember to create a Set that contains all of the resource that you just created. This step is often overlooked and although it is not difficult it could be automated with a simple workflow. Additionally this example demonstrates how to work with Filters in a workflow.


  1. Read The MIMWAL (Custom Workflow Activity Library)

  2. Add "Forefront Identity Manager Service Account" to the Administrator Set

  3. Create an "_All Resources" Sets with the Criteria of Created Time after 1 day ago (this is to ensure that the workflow will only be triggered for Resources Created after yesterday.

  • In the FIM Portal navigate to the Workflows Page

  • Click on New

    • Enter the name for your Workflow (I start all my workflows with an "_" which makes it easy to identify all non custom workflows.

    • For Workflow Type Select

      • Action

    • For Run On Policy Update

      • (Leave unchecked)

    • Click on Next

  • Click on Select

  • For Activity Display Name type something like "Create Resource Set" or what ever you wish to call this activity.

  • For Resource Type

    • Set

  • For Advanced Features

    • (Leave Unchecked)

  • For Attribute Population add the following

Value Expression


"_ALL "+[//Target/DisplayName]


"<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect" xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration">/"+[//Target/Name]+"</Filter>"


Make sure the entire text above in the Value Expression for the Target Filter is entered into the Value Expression.

  • Click on Save

  • Click on Next

  • Click on Finish

  • Click on Submit

Post Operation Steps

  1. Create Transition In MPR with using the "_All Resources" set that was created as part of the prerequisite steps above.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.