We need to add custom field zsourcedate field which is date field in CA Service Desk in TEXT_API. So that we can send custom date time through email for this field.
I have added field in TEXT_API as REQUEST.SOURCEDATE=zsourcedate.date
I am trying to send email as %SOURCEDATE=09/11/2018 09:50 am but still this date/time is not updating in the ticket.
Is there any other format to be send or something needs to be done. In CA Service Desk web, we are able to enter the format as 09/11/2018 09:50 am.
MM, what if you change to
and recycle? Thanks _Chi
Thanks Chi, I changed the Date as upper case. it starts working. But system updating with system date time zone. Is there any method to update this date field with user timezone.
MM, I don't think there is some configurable way to make the Text API use the user timezone. It always uses the server timezone. Thanks _Chi
Workaround with custom function described here Ticket to be created VIA email if Affected End User entered wrong
could be helpful in this situation too.
You can pass date as string concatenated with timezone, then using spel code parse and modify date before saving.
split example: SPEL: How to upload attachment using SPEL
date parsing examples: CA Service Desk date function in spell code
It really helped me a lot. I have created function which adds the date difference to the date which sends by the end user.