Fixed on $LAST_INTERFACE_DATETIME() function which is not working on the scheduler #
$LAST_INTERFACE_DATETIME(). It is a function that users use in a query. When the user puts it in the query it will be replaced with the last run time of the interface
Example: SELECT Id, Body, Name, ParentId From Attachment Where ParentId In $QUERY_FILTER_SOBJECT() And CreatedDate >= $LAST_INTERFACE_DATETIME()
The idea of this function is to get only new records from salesforce. for the record that has been exported, it will not export again.