none
Sync Rule not able to evaluate If Condition

    질문

  • 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.

    2018년 5월 30일 수요일 오전 4:42

답변

  • 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.
    • 답변으로 표시됨 Creados 2018년 6월 13일 수요일 오후 10:48
    2018년 6월 13일 수요일 오후 10:48

모든 응답

  • 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**

    2018년 5월 30일 수요일 오전 11:48
  • IsPresent is the equivalent in MIM for the IsNullOrEmpty().
    2018년 5월 30일 수요일 오후 8: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

    2018년 5월 31일 목요일 오전 3: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**

    2018년 5월 31일 목요일 오전 8: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.
    2018년 5월 31일 목요일 오전 8: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

    2018년 5월 31일 목요일 오후 1:49
  • That is correct this is a MIM outbound sync rule.
    2018년 6월 13일 수요일 오후 10: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.
    • 답변으로 표시됨 Creados 2018년 6월 13일 수요일 오후 10:48
    2018년 6월 13일 수요일 오후 10:48