web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Setting work hour template automatically - Issue getting time zone

(4) ShareShare
ReportReport
Posted on by 8
Hi,
 
We have a requirement to set the work hour template at a contact level rather than at an account level.
 
The plan was to call Azure Maps and pass thrugh the contacts address coordinates and get back the time zone then do a lookup to the time zone definitions table like in this excellent article https://www.inogic.com/blog/2022/11/set-timezone-format-field-based-on-account-location-in-microsoft-dynamics-365/#respond. The issue is the (Generic) time zone doesnt apear to be in the time zone definitions table, in the article they are using bing maps but as that is to be discontinued I need to use Azure Maps.
 
Here is an example of a response for a property in Ireland, I cant find anyway to link this back into Dynamics. 
 

{

    "Version": "2024a",

    "ReferenceUtcTimestamp": "2024-08-12T15:31:02.6956167Z",

    "TimeZones": [

        {

            "Id": "Europe/Dublin",

            "Names": {

                "ISO6391LanguageCode": "en",

                "Generic": "Ireland Time",

                "Standard": "Greenwich Mean Time",

                "Daylight": "Irish Standard Time"

            },

            "ReferenceTime": {

                "Tag": "IST",

                "StandardOffset": "01:00:00",

                "DaylightSavings": "00:00:00",

                "WallTime": "2024-08-12T16:31:02.6956167+01:00",

                "PosixTzValidYear": 2024,

                "PosixTz": "GMT-1IST,M3.5.0/1,M10.4.0",

                "Sunrise": "2024-08-12T06:00:37.7278597+01:00",

                "Sunset": "2024-08-12T21:00:53.0342742+01:00"

            }

        }

    ]

}

Any help would be apreciated. 

Thanks
I have the same question (0)
  • Suggested answer
    Sachin Jadhav Profile Picture
    157 on at
    Setting work hour template automatically - Issue getting time zone
    Is the API response returning "Standard" timezone name as well and are you able to extract it?
    If yes, then may be try searching timezonedefinition using that standard name.
     
    Here is what i saw on one of the sample responses.
     
     
    The timezone cane be looked up using standard name like this.
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 36 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans