REST APIを利用したアクティビティで接続先(外部システム)の表示上は日本時刻表示となっている値をUiPathで取得した際に時刻が-9時間された値が取得されます。
REST APIを使用するとUTCになってしまうのを何とか回避したいのですが
UiPath側で+9時間するしかないでしょうか?
取得のたびに+9時間するのは少し面倒でできれば設定で何とかできないかなと思っています。
補足:外部システムはServiceNowでServiceNowアクティビティを使用しています。ServiceNowのタイムゾーンは東京になっています。関係ないと思いますがUiPathOrchestratorのアプリケーションのタイムゾーンも東京になっています。
Hi @h.yasuda
Try to add X-UserTimeZone in Header request
X-UserTimeZone: America/New_York
Change to desired TimeZone
Cheers
Excuse me. Is it a form of adding it to the beginning of the variable? For example, is it something like this? X-UserTimeZone: America/New_York.variable
Hi @h.yasuda
Could you share some screenshot from the activities you are call servicenow api ?
Thank you for sharing
in Search ServiceNow Records Activity, you can add the following parameter
sysparm_display_value=true
It will display the values based on the configuration in servicenow
You can also limited the retrieved fields using
sysparm_fields=number,sys_created_on
Cheers
@rikulsilva
Where do you go back to search at the table?
Do you have a table with the sysparm_display_value=true parameter set, and there are records for each setting?
Does it mean that if you update the record found by searching with the update activity and change the parameters, you can get the value to be retrieved in display_value?


