Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to set the custom date value to Activity Start Date field

in Sales 1 comment

Summary:

We have a requirement to book the slots as per the availability so as per the selection we need to book the appointment.

Based on the selected Date and Time we need to update the Activity Start and End Date , but unable to update the fields with desired values

Content (required):

In below new_time we have our date and time and formating using format method.

Ex 1: def new_date = new Date(new_time).format("yyyy-MM-dd hh:mm a") 

setAttribute('ActivityStartDate',new_date)

Ex 2: def new_date = new Date(new_time).format("yyyy-MMM-dd hh:mm a") 

setAttribute('ActivityStartDate',new_date)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!