1

I have a lookup field in the quote line item standard object. It is a lookup field to a custom object that has a field that is an expiration date.

I need to be able to filter the lookup so that it does not return any record that has an expiration date that has passed (it's < today's date). Unfortunately neither TODAY nor formula fields are supported in lookup field filters. Is there a workaround for this?

I've looked at http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/ but it says that workaround is for VF pages, not for standard page layouts.

2

You could consider a writeable Is_Active__c checkbox field, which you can then turn to false using a Time Based Workflow Rule. That way, you should be able to include the field in your filter, but still have it indicate whether or not the expiration date has passed.

|improve this answer|||||
  • 1
    Adrian: Thank you! I've never used a time-based workflow rule before - that's the solution I need. Thank you! – David G May 10 '17 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.