• Jenn Sanchez
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I am very new to development in general and to Salesforce development. I have a custom object Announcements__c. I want to display the most recent announcement record on a visualforce page. I have gone through the visualforce basics module (https://trailhead.salesforce.com/content/learn/modules/visualforce_fundamentals) but still cannot figure out how to pass the record ID of the most recent announcement record (custom object). Here is my apex class - which I modeled after the trailblazer example which used the Contact standard object, so not really sure this translates well to my custom object:

User-added image
And here is the visualforce markup:

User-added image

I get no errors, but also don't get my custom object field to display. Any help would be much appreciated!