I need to call some external REST APIs each time a user logs into a Salesforce Communities portal. The call should pass over some information about the user from the record in Salesforce.

I've been looking into Login Flows but don't see any clear way to create a custom element or similar to perform this action. Is this possible with a Login Flow or with an APEX trigger?

1 Answer 1


You can use the @invocableMethod annotation to make a static Apex method available to use in a Login Flow.

You cannot run a trigger on logins as of S17.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .