function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IWanaGoFishingIWanaGoFishing 

Assigning lead to queue or user based time/day of week created; displaying time created in lead view

We have three people at my firm who work leads.  One of them works all leads created between 7:00pm and 9:59am as well as everything from Saturday and Sunday.

 

Is there a way to assign leads to a queue or users based upon the time and day of week?

 

Additionally, is there a way to display created time in addition to created date in lead view?

 

Displaying the time in a lead view is something that has been requested and could create a workaround for assigning leads based on day of week and time.

 

We're on Professional Edition.

 

Thanks in advance for the help!

SargeSarge

Hi ,

 

Displaying Day of the week

 

    Currently the formula fields/ workflows are not capable enough to display day of the week. Hence, it can be done using before insert trigger.

 

create a custom field of type text for this purpose  and use it only for trigger edit (read-only in page layout)

 

Displaying Created time:

 

    The "Created Date" field is a datetime field which stores date as well as time at the moment of creation. Hence it would be ideal to extract time information here. Again use before insert trigger to extract the time information and store only the number information of hour of creation (in 24 hr format). You can then compare this number with numeric 19 or 10 (24 hr format) in assignment rules.

 

Hope this solves