• NewToSalesforce2012
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

I have built an Apex Schedulable Class that sends an email to our Sales director when an account has an account review date 14 days away.

 

In the email, their needs to be a link to a flow that starts the calculation for a commision process.

 

How do I make the flow understand that it needs to the pull information from the Account that has the account review date in 14 days? Currently, I can click on the link in the email, but the flow doesn't know where to pull the account information from and I get an error message after the first screen.

 

My guess would be to populate a variable with all the account information and set that equal to the variable in flow that does the account lookup.

 

However, it is my understanding that variables in flow only exist in flow and variables in Apex only exist in Apex.

 

How do I sync my Apex class in flow?