• Christian Kendall 10
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello Salesforce Community - First post #1!

Business Goal : 15 minutes after a lead is created from a web-to-lead form I'd like to reassign the lead to a queue if the SDR has not updated the lead status from default value of "Not Started".

Problem :  Process builder doesn't allow you to use conditions based on custom formula fields which would display the created time and compare to the time now.

Solution : Write Apex code, have that code populate a field on the lead object indicating the created date/time + 15 minutes. Then process builder can evaluate the created date time to see if Now () created date is greater than the created date + 15 minutes.  This would allow for the conditions to be met and the record owner updated to the queue.  

Can someone please help me write this code and understand how to push it to the field on the lead object which is not going to be a formula.
Hello Salesforce Community - First post #1!

Business Goal : 15 minutes after a lead is created from a web-to-lead form I'd like to reassign the lead to a queue if the SDR has not updated the lead status from default value of "Not Started".

Problem :  Process builder doesn't allow you to use conditions based on custom formula fields which would display the created time and compare to the time now.

Solution : Write Apex code, have that code populate a field on the lead object indicating the created date/time + 15 minutes. Then process builder can evaluate the created date time to see if Now () created date is greater than the created date + 15 minutes.  This would allow for the conditions to be met and the record owner updated to the queue.  

Can someone please help me write this code and understand how to push it to the field on the lead object which is not going to be a formula.
Hello Salesforce Community - First post #1!

Business Goal : 15 minutes after a lead is created from a web-to-lead form I'd like to reassign the lead to a queue if the SDR has not updated the lead status from default value of "Not Started".

Problem :  Process builder doesn't allow you to use conditions based on custom formula fields which would display the created time and compare to the time now.

Solution : Write Apex code, have that code populate a field on the lead object indicating the created date/time + 15 minutes. Then process builder can evaluate the created date time to see if Now () created date is greater than the created date + 15 minutes.  This would allow for the conditions to be met and the record owner updated to the queue.  

Can someone please help me write this code and understand how to push it to the field on the lead object which is not going to be a formula.