Forum Discussion

jzachar's avatar
jzachar
New Contributor
6 months ago

Bypass import records based off date in records (Time Dim)

How would I bypass import records where the time is not equal to the WF Time POV?
  • T_Kress's avatar
    6 months ago

    You can bypass records at the Data Source level.  You would need to add a complex expression to the Time dimension of the data source.  It could look something like this:

    Dim WFTimeStr As String = api.CurrentDataClusterKey.TimeName
    Dim FileTime As String = args.Value
    
    If FileTime.XFEqualsIgnoreCase(WFTimeStr) = True Then
    	Return args.Value
    Else 
    	globals.Bypass = True
    End If
    

    Test and see if you can get that to work.

     

     

     

     

  • MarcusH's avatar
    MarcusH
    6 months ago

    You could use this to get the month:

    Dim thisMon As String = WFTimePOV.Split("M")(1)