admin管理员组文章数量:1023263
I am developing a customer application form using OmniScript and need to populate a dropdown in an Edit Block with a specific list of accounts.
The OmniScript is related to an Opportunity, and I have an Extract data mapper which gets the IDs of all accounts associated with the Opportunity account (e.g. if Opportunity is associated with a Household account, the data mapper pulls IDs of all household members).
The first step of the application form allows users to check and correct contact/account details for all household members using an Edit Block. This is populated using the data mapper and works as expected.
Subsequent steps allow creation of other records related to these accounts (e.g. employment history). For this I am also using Edit Blocks, but I need a dropdown field in the Edit Block to associate these records with a specific applicant.
I have followed the tutorial at this link to create a custom Apex class which populates the dropdown with ALL accounts in the Salesforce instance: /@anthima/dynamic-dropdowns-customizing-picklist-values-based-on-select-properties-in-omniscripts-a112c66f0c12
How can I modify this Apex class to only retrieve the relevant accounts, i.e. the IDs already retrieved by the data mapper? It's my understanding I can only populate a dropdown using Apex and cannot leverage the existing data mapper.
I am new to Apex - advice or other suggestions appreciated.
I am developing a customer application form using OmniScript and need to populate a dropdown in an Edit Block with a specific list of accounts.
The OmniScript is related to an Opportunity, and I have an Extract data mapper which gets the IDs of all accounts associated with the Opportunity account (e.g. if Opportunity is associated with a Household account, the data mapper pulls IDs of all household members).
The first step of the application form allows users to check and correct contact/account details for all household members using an Edit Block. This is populated using the data mapper and works as expected.
Subsequent steps allow creation of other records related to these accounts (e.g. employment history). For this I am also using Edit Blocks, but I need a dropdown field in the Edit Block to associate these records with a specific applicant.
I have followed the tutorial at this link to create a custom Apex class which populates the dropdown with ALL accounts in the Salesforce instance: /@anthima/dynamic-dropdowns-customizing-picklist-values-based-on-select-properties-in-omniscripts-a112c66f0c12
How can I modify this Apex class to only retrieve the relevant accounts, i.e. the IDs already retrieved by the data mapper? It's my understanding I can only populate a dropdown using Apex and cannot leverage the existing data mapper.
I am new to Apex - advice or other suggestions appreciated.
本文标签: salesforceOmniScriptPopulate dropdown with specific accounts using Apex classStack Overflow
版权声明:本文标题:salesforce - OmniScript - Populate dropdown with specific accounts using Apex class - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745580599a2157287.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论