Salesforce Fact #792 | Iterate over two lists in same loop

Suppose we have two lists of different length and we want to iterate over the lists in the same loop.

We can do this by using some logic in apex.

Attached is the sample code snippet.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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