Skip to Content

How to import vehicles?

Helle there!

I've enabled the vehicle vertical in C4C to manage vehicles (Products > Vehicle Management). Using the UI I can create vehicle normally, it seems like an extension of the individual/registered product. Now I need to import thousands of vehicles and these are my options:

1) Import via migration template:

- It doesn't exists. An incident was open but nothing could be done.

2) Import via custom web services:

- It can't be done. The error "The alternative key or one or more business object elements are not released for PSM" appears in all operatios. In addition, there isn't queryByElements query and I can't create alternative key in xbo.

3) Create a custom BO with all information needed and populate via XML file input or custom webservice, after that, in beforeSave or using MDR, create Vehicle by code:

- It doesnt' work. The Create() method of Vehicle doesn't do anything. I can't fill basic information such as VIN, Product and Customer that belongs to IndividualProduct.bo.

4) Import as Individual/Registered Product using standard mechanisms and in beforeSave create the respective Vehicle by code:

- It can't be done. IndividualProduct.bo belongs to Foundation deployment unit and Vehicle to CRM. Apperantly I can't use Vehicle.Create() and even if it's possible I don't know how to do it.

Any suggestion?

Thanks in advance.

Alexandre.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 11, 2015 at 12:24 PM

    Hello Alexandre,

    I assume the main obstacle in your apporaches are that you want to create / maintain the only AlternativeKey of the BO Vehicle: ID.

    This element is not write-released. It will be determined by the system.

    You propably need to provide an InstallationPoint too.

    Bye,

    Horst

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.