CSV connector configuration issue

Hi to all,

I'm working on the onDeman solution.

I have create a CSV connector for the users. Some fields are determined by templates, others by CSV connector. For example, I have the field "isExternal" that by default has the value "true", but in CSV file I want to overwrite it with the value "false". When I create the report with the simulation, the data seems correct. When I execute the connector, the fileds determined by template overwrite those in che CSV file. 

If I flag or not the "Data import" option in the WF settings the behavior is the same. 

Is it possible to load users through CSV connector by inserting data in the CSV file independently from templates, therefore without considering the templates?

Do you have any suggestion?

Thank you,

Martina

Parents Reply
  • Hi Markus!
    I changed the template and tried this script (with the ImportSource value to "HRCSV" in the CSV file):

    If not String.IsNullOrEmpty($ImportSource$) and CStr($ImportSource$) = "HRCSV" Then
    	Value = False
    Else
    	Value = True
    End If
    
    

    When I run the CSV connector and try to insert an employee, the script works fine and the value of the isExternal field is correct. However, when I try to insert a user from Web Portal or Manager the result is not as expected. Specifically, when I try to enter a user from Web Portal or Manager the expected result is "True", but I always get "False" (I've also tried inverting the value for testing, but the behavior doesn't change). Maybe it goes through an exception. What could be the error?

Children