Issue
When trying to run a custom object Document Package, the option to select a contact to use is not available in the Document Package page layout.
Resolution
Add the contact parameter in the "Run Document Package" button:
- Navigate to the Test Record (View Fields > Buttons, Links, and Actions).
- Edit on “Run Document Package” button.
- Add the following parameter:
&accountId=[Account ID]or&opportunityId=[Opportunity ID]
For example, if a custom object is called “Country__c” then the button code behind should look as follows:
/apex/loop__looplus?sessionId={!$Api.Session_ID}&eid={!Country__c.Id}&accountId={!Country__c.AccountID__c}
Additional Information
The contact is not associated automatically for custom objects.
