function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MayankAdmMayankAdm 

CLI Integration

Hi,

 

I have csv file which contain Account and contact data for categorizing this 2 object there is column name "Corporate" which have Boolean value i.e. If Value is True than Insert Account If  value is False than Insert Contact 

 

How to achieve this things through CLI 

 

Please help me out 

 

Thanks 

mayank 

Rahul_sgRahul_sg

 

 

I would suggest you to inmport your file first into a database and separate the records into 2 diff tables an then use those tables to import records into sfdc...you can connect SQL server/ ORacle with dataloader cli.

 

Alternately, (This is not a best practice)

You can define 2 validation rules.

1) On Account object : Give error if Corporate is false

2) on Contact object : give error if Corporate is true 

 

and use the same file for import.