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
yarongyarong 

Insert a lookup field

Hello,
 
I made a lookup field in a custom object that is linked to another custom object . When i am querying this field, i am getting Probably the ID of this field. How can i insert a new record with a text (this field is text ) not an ID number?
 
For example : the first object is called : Projects, the second one called: Time. In Time i have a field name
 
project that linked to the object : Projects.
 
I want to be able to insert new row in time that contain the name of the project insted of the ID .
 
Thank you,
 
Yarong
HarryKHarryK
You need the ID of the Projects custom object.  First, retrieve the Projects custom object, save the ID of the project you want in your Time custom object. 
You may want to use a different worksheet to retrieve the Projects custom object and cut and paste the value in to the Time record(s). 
yarongyarong
Thanks,
 
But i wanted to do that without cut and paste.
 
Guess
yarongyarong
Thanks,
 
But i wanted to do that without cut and paste.
 
Guess i
yarongyarong
Sorry ....
 
I was saying thank you , i guess i can`t...