Meeting start date and end in RITM and Task description start date and end date timing are differe

Manohararuna
Tera Contributor

Hello Everyone,

 

          I have one requirement, whenever my client create request item related to meetings, RITM having the correct timings but whatever Task getting created under RITM that task description having the different timings compare to RITM.

Please provide solution for it.

 

Regards,

Manohararuna

1 ACCEPTED SOLUTION

@Manohararuna 

it's because of timezone, use getDisplayValue() on both the date/time variables to get the value you see on FORM

desc += 'Who is the contact for the meeting: ' + current.variables.who_is_the_contact_for_the_meeting.getDisplayValue() + '\n';
desc += 'Meeting Start date: ' + current.variables.what_is_the_date_and_time_of_the_meeting.getDisplayValue() + '\n';
desc += 'Meeting End date: ' + current.variables.meeting_end_date_time.getDisplayValue() + '\n';
desc += 'Please provide country, building, floor and conference room name: ' + current.variables.please_provide_country_building_and_floor_details + '\n';

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Manohararuna
Tera Contributor

and this is the script in workflow need to correct it, actually it wont work

desc += 'Who is the contact for the meeting: ' + current.variables.who_is_the_contact_for_the_meeting.getDisplayValue() + '\n';
desc += 'Meeting Start date: ' + current.variables.what_is_the_date_and_time_of_the_meeting + '\n';
desc += 'Meeting End date: ' + current.variables.meeting_end_date_time + '\n';
desc += 'Please provide country, building, floor and conference room name: ' + current.variables.please_provide_country_building_and_floor_details + '\n';

Ankur Bawiskar
Tera Patron
Tera Patron

@Manohararuna 

what value you are expecting? is it not showing the values selected on variable?

how it's coming now? share screenshots

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

RITM having the two variables  what_is_the_date_and_time_of_the_meeting(variable backend value) and meeting_end_date_time . these two VAlues are update in Task Description after closing RITM .

Can you please see the diffenece in Task Description time values and RITM Variable values. i want to both samw

Manohararuna_1-1750923453583.png

 

Manohararuna_0-1750923406196.png

 

@Manohararuna 

it's because of timezone, use getDisplayValue() on both the date/time variables to get the value you see on FORM

desc += 'Who is the contact for the meeting: ' + current.variables.who_is_the_contact_for_the_meeting.getDisplayValue() + '\n';
desc += 'Meeting Start date: ' + current.variables.what_is_the_date_and_time_of_the_meeting.getDisplayValue() + '\n';
desc += 'Meeting End date: ' + current.variables.meeting_end_date_time.getDisplayValue() + '\n';
desc += 'Please provide country, building, floor and conference room name: ' + current.variables.please_provide_country_building_and_floor_details + '\n';

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader