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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

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
  • Suggested answer
    Sachin Jadhav Profile Picture
    157 on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 42

#2
11manish Profile Picture

11manish 21 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 19

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans