Salesforce Fact #697 | Getting related contacts using graphql

How do you pass dynamic value for the parameter in graphql query. The values need to be passed in the 'variables' parameter and the return value is accessed through a getter function.

In this example, we are getting the related contacts passing the accountId from the account record detail page.

Reference: https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_graphql

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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