Entity Plugin
The ISelectEntityPlugin customizes the entity selection process in multi-entity organizations.
Use the ISelectEntityPlugin on the EntityPlugin component to customize the Billing entity selection process.
Use the ISelectEntityPlugin on the SelectEntity component to customize the entity selection logic in your quoting process.
The ISelectEntityPlugin is executed when you click New Quote in a multi-entity org.
Interface class signature of the plugin is:
global without sharing class MySelectEntityPlugin implements
zqu.SelectEntityComponentOptions.ISelectEntityPlugin {
global zqu.SelectEntityComponentOptions.SelectEntityPluginResponse
selectEntityForNewQuote(String accountId, String opportunityId) {
zqu.SelectEntityComponentOptions.SelectEntityPluginResponse resp =
new zqu.SelectEntityComponentOptions.SelectEntityPluginResponse();
//Add implementation code here...
return resp;
}
}ISelectEntityPlugin returns the SelectEntityPluginResponse class. The class includes the following properties.
|
Name |
Type |
Description |
|---|---|---|
|
selectedId |
ID |
Salesforce ID of the Billing Entity to be used for the quote. |
|
autoSubmit |
Boolean |
If true, the entity will be selected, and users cannot change it. If false, the entity will be selected in the menu, but the user can change it. |