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
frankcsefrankcse 

Read Only Custom object

We have an in-house web application for quotes.  I would like to pass data from this application back to Salesforce into a custom object and display it in a related list on the opportunity.  The related list needs to be entirely read-only.  Think of it like the Stage History related list.  I will also need to remove the "New" button control from the related list display on the custom object.  Could you please suggest a solution with as much detail as possible.  Our development team is just learning the API and code samples would be very helpful.

Thank you.

-Franklin
Park Walker (TAGL)Park Walker (TAGL)
Just create the custom object with just 'Read' access for all profiles except the one assigned to the API, include the Opportunity ID as a field and add the list to the Opportunity layout.