Forum Discussion

liao_ben's avatar
liao_ben
Copper Contributor
Jun 29, 2022

How to set booking page langaue and time zone in graph api ?

Hi,

I want to change the language and time zone of the booking page. I can't find the api information. Does the graph api support this function?

 

 

3 Replies

    • AntoineGenot's avatar
      AntoineGenot
      Copper Contributor

      Hi Liao, I can confirm using graph API mailboxSettings, it works great.

       

      My code:

      $mailboxSettingsBody = @{
              language   = @{
                  locale = 'fr-FR'
              }
              timeFormat = 'HH:mm'
              dateFormat = 'dd/MM/yyyy'
              timeZone   = 'Romance Standard Time'
          } | ConvertTo-Json
          Invoke-MgGraphRequest -Method PATCH -Uri ('https://graph.microsoft.com/v1.0/users/{0}/mailboxSettings' -f $BookingsAccountId) -Body $mailboxSettingsBody | Out-Null

       

      Best regards.

  • AntoineGenot's avatar
    AntoineGenot
    Copper Contributor
    Same issue here using Microsoft.Graph V1.17.0 and following cmdlet:
    Update-MgBookingBusiness -BookingBusinessId XXX -BodyParameter @{ LanguageTag = 'fr-FR' }
    No error but nothing happens

Resources