How do I get the ID for a custom object in Salesforce?

  • 1
  • Question
  • Updated 2 years ago
In Salesforce, we have a custom object called Job. I'm trying to create a button which will create a JIRA issue using data from a Job object. I created a JobController class, but this isn't working for me:
<apex:page standardController="Job__c" extensions="JobController,JiraUserController">
<apex:iframe src="https://brivosys.atlassian.net/plugins/servlet/customware/connector/issue/5/Job__c/create.action?{!Job.Id}=&os_username={!jirausername}&os_password={!jirapassword}" scrolling="true"/>
</apex:page>

I end up with this error message:
Error: Unknown property 'Job__cStandardController.Job'
Photo of Uy Hoang

Uy Hoang

  • 15 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Adrien Low

Adrien Low, Alum

  • 85 Posts
  • 3 Reply Likes
Hello Hoang,

Can you please provide us with the following information?
  • JIRA and Connector version
  • Any documentation that you may have been following

Regards,
Adrien
Photo of Uy Hoang

Uy Hoang

  • 15 Posts
  • 0 Reply Likes
Nevermind, I was able to figure it out:

{!$CurrentPage.parameters.id}
Thanks.