DeepDive: Build An Apex Flow Action

preview_player
Показать описание
Salesforce's Lightning Flow has a powerful mechanism for turning chunks of Apex code into declarative building blocks for use by non-coders. Learn how its done.
Рекомендации по теме
Комментарии
Автор

@Alex Edelstein, I'm using this almost exactly as you have it written although I am only using the math.random range for 0 to 1. The problem I'm having is in testing in batch where I want to see the random numbers generated for 500 contacts. When I try and do this through flow, I get the error "The number of results does not match the number of interviews that were executed in a single bulk execution request." Any suggestions to execute in batch? Thanks!!!

michellebusch
Автор

@Alex Edelstein, how would an APEX unit test would look like to test an invokable class with its global inner request/results classes and assigning their global properties? thanks!

orlybriceno