ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

Forums Oro Community Import with missing data ?

This topic contains 17 replies, has 3 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year ago.

  • Creator
    Topic
  • #53311

    vladimir.petrov
    Participant

    Can users import a cvs file with missing columns?
    Right now the web interface marks all records as “Records with errors”, so there is no import.

    Thanks.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Author
    Replies
  • #53327

    vladimir.petrov
    Participant

    Also do I have to write public function convertToImportFormat(array $importedRecord, $skipNullValues = true)
    in the custom data converter or just have getHeaderConversionRules() and nothing else?

    #53328
    Mike Kudelya
    Mike Kudelya
    Moderator

    Hi

    item_id refers to ‘first name’ or [First name] in my case?

    Key of array must be your header in csv file and value must be oro field. This documentation describes how to add data converter into processor.
    Almost every bundle contains documentation here Resources/doc or in README.md.
    Also you can read Oro Documentation.

    Also do I have to write public function convertToImportFormat(array $importedRecord, $skipNullValues = true)
    in the custom data converter or just have getHeaderConversionRules() and nothing else?

    As convertToImportFormat comment said “Convert plain data to import complex representation”. It is needed for modifyng array of record to complex tree.


Viewing 2 replies - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.

ssossossosso