I have created a detail page button of Custom source as URL that has below URL
/apex/ComplianceIncidentPublish?Id={!Compliance_Incident_abv__c.Id}
That is unable to get hold of ID in the VF page. Can someone help please?
I have created a detail page button of Custom source as URL that has below URL
/apex/ComplianceIncidentPublish?Id={!Compliance_Incident_abv__c.Id}
That is unable to get hold of ID in the VF page. Can someone help please?
Have you tried using this on the VF page:
{!$CurrentPage.parameters.id}
Or this in your actual APEX:
ApexPages.currentPage().getParameters().get('id');
See VF page param here: https://www.salesforce.com/docs/developer/pages/Content/pages_quick_start_query_params_getting.htm
and ApexPage APEX method here: https://www.salesforce.com/docs/developer/pages/Content/apex_System_ApexPages_currentPage.htm