Import data Wizard - Mandatory fields check RRS feed

  • Question

  • Hi,

    I have a CSV file with all the mandatory fields of contact as columns.

    I created a Datamap for the contact according to the CSV file.

    When i am importing, when there is blank data for mandatory columns, my requirement is to stop the import and log the failure as 'Import failed as col1 is blank'.

    For this purpose, i wrote a pre create plugin on the contact entity for which import is being performed.

    I am throwing an exception when mandatory coloum is blank.

    Now, my issue is, inorder to log a failure message for import file system job, i dont have a handle on import file in pre create plugin. 

    Please suggest me how to get the guid of import file and how to create import failure log once the import is done.

    Thanks in advance.

    Wednesday, April 7, 2010 3:15 AM


  • Could you run the import then use Advanced Find to isolate the records with empty mandatory fields?

    Leon Tribe

    Want to hear me talk about all things CRM? Check out my blog

    or hear me tweet @leontribe

    Want to hear me talk about all things CRM? Check out my blog http://leontribe.blogspot.com/ or hear me tweet @leontribe
    Saturday, April 10, 2010 5:41 AM