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
Apex codingApex coding 

Apex coding issue , please help me to solve this issue

Hi
 
I have created a custom object, at the time of creating this I have mapped this to Opportunity object using look up
 
After creating this custom object, Iam able to add the records By Clicking on  the new button i.e manually
 
But if I try to insert programatically by using Apex code, Iam not getting any errors but the record that is inserted is not visible
 
what sort of settings I have to do, can any one please help me to solve this issue
 
 
 
Sai LavuSai Lavu
"Iam not getting any errors but the record that is inserted is not visible"
 
Was the record really inserted? Can you do a SOQL query to verify the record exists. Are the custom object permissions set correctly? Was the record type if applicable set correctly?
 
I would have like more details to better answer the question.
Apex codingApex coding

I have extracted all the records of custom object I got all the records

but they are not displayed in the view part,

Here my custom object is under opportunites tab

will there be any settings or permissions  required to view those records