Salesforce Fact #723 | Related contacts in screen flow using GraphQL LWC

Today let's see another use case with reactive screen components. And this time, we have the GraphQL API as well.

Suppose, we have a use case where we have a lookup input on the screen flow for selecting an account record and on selecting the account, we want the related contact records(upto 10). We can create an LWC to fetch related contacts for an accountid using GraphQL API and expose the same in the screen flow.

Attached are the screenshots.










Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow