Salesforce Fact #405 | Invocable utility method for getting custom metadata

Continuing with the last use case, we can create an utility function which will get the metadata values using built-in functions and it won't get counted towards Governor limit.

The function will take the API name of the custom metadata and would return the corresponding metadata records. Every time a new custom metadata gets created, we can create an entry in this function. The function is invocable from flow.

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