Import Flow - Trying to set default value with a Rule Extension RRS feed

  • Question

  • Hi,

    I need to implement a rule extension to set a default value for a datetime attribute

    If csentry("XYZ").IsPresent Then
    mventry("xyz").Value = DateTime.ParseExact(...).ToString("yyyy-MM-ddTHH:mm:ss.000")
    mventry("xyz").Value = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.000")
    End If

    It does the desired formatting where there is a value in the source (csentry).

    However, when there is no value in the source, the rule extension code does not run and I can see in the PReview the "Not Applied" in the status column.

    Why does this happens and how can I ensure a default value into the Metaverse?



    Wednesday, October 16, 2019 5:54 PM