salesforce - OmniScript - Populate dropdown with specific accounts using Apex class - Stack Overflow

I am developing a customer application form using OmniScript and need to populate a dropdown in an Edit

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745580601a4634232.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信