Link datatype usage

Can anyone show me steps on how to use link datatype for data entry.

@erp Please elaborate use case.

I have a file which needs to be imported in erpnext, but when i insert data from excel csv into field which has a link datatype gives error ‘Import Failed’ .
Im not sure what data does link hold, how to use it for insertion, what entry should i make for successful insertion.

Link field basically works as a pointer to a document.

Example: You have two doctypes Doctype1 and Doctype2. in Doctype2 you have a link field which is a reference of Doctype1.

So first, make data entry for Doctype1 (manually or via data import tool) then import data for Doctype2.