none
Set condition "Ends with" RRS feed

  • Question

  • Hi,

    Is it possible to define criteria based set if a given attribute ends in some characters?

    e.g., A set of all users where accountName ends in 01?

    The best I can come up with is "Starts with" %01[^%]  -> not sure if this will work though

    If this is not possible, then is there some function in the sync rule which can help me extract the last 2 characters of the accountname and apply a rule based on that? Something to say:

    If accountname ends with 01, flow "01" else flow"02"

    Thanks


    • Edited by kmittal82 Monday, November 4, 2013 1:36 PM
    Monday, November 4, 2013 1:26 PM

Answers

  • You can use ends-with, but the filter builder cannot render it:

    1. Open your set
    2. Advanced View
    3. Extended Attributes
    4. Edit the Filter attribute. It should look something like this

    <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">/Person[ends-with(AccountName, 'L')]</Filter>

    FIM XPath Filter Dialect


    • Edited by Gaston Thomasi Monday, November 4, 2013 1:56 PM
    • Marked as answer by kmittal82 Tuesday, November 5, 2013 8:46 AM
    Monday, November 4, 2013 1:55 PM

All replies

  • You can use ends-with, but the filter builder cannot render it:

    1. Open your set
    2. Advanced View
    3. Extended Attributes
    4. Edit the Filter attribute. It should look something like this

    <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">/Person[ends-with(AccountName, 'L')]</Filter>

    FIM XPath Filter Dialect


    • Edited by Gaston Thomasi Monday, November 4, 2013 1:56 PM
    • Marked as answer by kmittal82 Tuesday, November 5, 2013 8:46 AM
    Monday, November 4, 2013 1:55 PM
  • Great, completely missed the "Advanced View" button on the set page!

    Thanks a lot

    Tuesday, November 5, 2013 8:46 AM