Custom Function give wrong date and getrecordbyid returns Invalid Ticket Id

Custom Function give wrong date and getrecordbyid returns Invalid Ticket Id

Hello,

I am having difficulty getting a date/time field from zoho CRM Event in a custom function.  

The date/time that is returned is not correct.  I am passing the "To" and "From" date/time fields of an Zoho CRM Event to a custom function. This function passes the date/time field to another system. The other system gets the date/time value but they time is 8 hours ahead of the proper time.

I read the thread here with the same problem:
https://help.zoho.com/portal/en/community/topic/custom-function-event-time-zones


To fix my issue i have used:

eventDetails = zoho.crm.getrecordbyid("Events",input.Event_ID);

My problem here is that eventDetails  is returning as follows:

{"4834":"Invalid Ticket Id"}

what is the issue here?

It doesn't matter what Event_ID i pass to this function i always get the same Invalid Ticket ID message.

So 3 questions:

Why is my date/time field 8 hours ahead?

Why can i not look up the event using getrecordbyid Method?

How can i fix either of these?



This is for zoho crm account ID: 656299175