none
Sync Rule not able to evaluate If Condition

    Domanda

  • I have a function in the synchronization rule to populate 

    IIF(

         IsPresent(msExchRecipientDisplayType), 

    IIF(NotEquals(msExchRecipientDisplayType,-2147483642),msExchRecipientDisplayType,-2147483642), 

    -2147483642 )

    mapping to the AD attribute msExchRecipientDisplayType

    If there is an attribute in AD it works fine and gives the appropriate attribute.

    If there is no attribute I am expecting the value -2147483642

    However, when there is no value in AD, the function does not populate any value the sync engine gives a message Skipped: Not Precedent,,sync-rule-mapping - expression,msExchRecipientDisplayType,,(Unchanged)

    I am confused as to why this is happening.

    mercoledì 30 maggio 2018 04:42

Risposte

  • I finally decided to write custom code in an extension that looked if the value was present in the connector space, if not it would add the value as described in the sync rule.
    • Contrassegnato come risposta Creados mercoledì 13 giugno 2018 22:48
    mercoledì 13 giugno 2018 22:48

Tutte le risposte

  • I think you have to do IsNullOrEmpty as well see an example below.

    -Expression 'IIF(IsNullOrEmpty([c],"DE",[c])' `


    **Please don't forget to mark as helpful or answer**

    mercoledì 30 maggio 2018 11:48
  • IsPresent is the equivalent in MIM for the IsNullOrEmpty().
    mercoledì 30 maggio 2018 20:38
  • 365 Guy:

    IsNullOrEmpty is not a function that can be used in a sync rule.

    Creados:

    Is this an inbound or outbound flow rule?


    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

    giovedì 31 maggio 2018 03:12
  • Hi David, are you sure? If I look at my Azure AD Connect builtin rules I see many expressions using this function.

    **Please don't forget to mark as helpful or answer**

    giovedì 31 maggio 2018 08:48
  • Hi David, are you sure? If I look at my Azure AD Connect builtin rules I see many expressions using this function.

    **Please don't forget to mark as helpful or answer**

    We are speaking about the FIM or MIM here so it is a little bit different thing.
    giovedì 31 maggio 2018 08:52
  • Given that this is the FIM/MIM forum I assumed that Creados was using FIM/MIM. Azure AD Connect while descended from FIM is a different animal.

    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

    giovedì 31 maggio 2018 13:49
  • That is correct this is a MIM outbound sync rule.
    mercoledì 13 giugno 2018 22:46
  • I finally decided to write custom code in an extension that looked if the value was present in the connector space, if not it would add the value as described in the sync rule.
    • Contrassegnato come risposta Creados mercoledì 13 giugno 2018 22:48
    mercoledì 13 giugno 2018 22:48