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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Microsoft Outlook + Sh...
Power Automate
Unanswered

Microsoft Outlook + Shifts Integration

(0) ShareShare
ReportReport
Posted on by
Hello,
 
I am a Production Manager at a Digital Media company and I am looking to streamline our scheduling process with our Freelance team. 
Recently I was made aware of the tool "Microsoft Shifts" and I figured there must be someway to integrate Shifts and Microsoft Outlook.
 
I attempted to create a workflow in Power Automate, but I keep receiving an error message when I Save the workflow. 
Would you be able to help me troubleshoot this workflow?

I've attached a screenshot of the workflow. Here's the code:
{
  "type": "OpenApiConnectionWebhook",
  "inputs": {
    "parameters": {
      "teamId": "11dc3c69-1515-4fad-b291-56651d17500e"
    },
    "host": {
      "apiId": "/providers/Microsoft.PowerApps/apis/shared_shifts",
      "connection": "shared_shifts",
      "operationId": "TriggerForShifts"
    }
  },
  "splitOn": "@triggerOutputs()?['body/value']"
  {
  "type": "OpenApiConnection",
  "inputs": {
    "parameters": {
      "teamId": "@triggerOutputs()?['body/resourceData/teamId']",
      "shiftId": "@triggerOutputs()?['body/resourceData/id']"
    },
    "host": {
      "apiId": "/providers/Microsoft.PowerApps/apis/shared_shifts",
      "connection": "shared_shifts",
      "operationId": "GetShift"
    }
  },
  "runAfter": {}
}
{
  "type": "If",
  "expression": {
    "equals": [
      "@triggerOutputs()?['body/changeType']",
      "create"
    ]
  },
  "actions": {},
  "else": {
    "actions": {}
  },
  "runAfter": {
    "Get_a_Shift": [
      "Succeeded"
    ]
  }
}
{
  "type": "OpenApiConnection",
  "inputs": {
    "parameters": {
      "table": "Calendar",
      "item/subject": "@outputs('Get_a_Shift')?['body/draftShift/displayName']",
      "item/start": "@outputs('Get_a_Shift')?['body/draftShift/startDateTime']",
      "item/end": "@outputs('Get_a_Shift')?['body/draftShift/endDateTime']",
      "item/timeZone": "Eastern Standard Time",
      "item/isReminderOn": true,
      "item/showAs": "busy"
    },
    "host": {
      "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365",
      "connection": "shared_office365",
      "operationId": "V4CalendarPostItem"
    }
  },
  "runAfter": {
    "Condition": [
      "Succeeded"
    ]
  }
}
 
 
And here is the error message:

{"message":"Request failed with status code 400","name":"AxiosError","code":"ERR_BAD_REQUEST","config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","accept-language":"en-US","x-ms-client-session-id":"2cbedd60-fd37-11f0-b134-735d1b019374","x-ms-client-request-id":"1bcfa687-2f7a-4004-be8c-35d6dd7574ee","authorization":""},"operationName":"PROCESSSIMPLE:POST/PROVIDERS/MICROSOFT.PROCESSSIMPLE/ENVIRONMENTS/FLOWS","params":{"api-version":"1"},"method":"post","url":"https://default8b29cadb734945a3a96fb514e71d74.17.environment.api.powerplatform.com/powerautomate/flows","data":"{\"properties\":{\"connectionReferences\":{\"shared_shifts\":{\"id\":\"/providers/Microsoft.PowerApps/apis/shared_shifts\",\"connectionName\":\"shared-shifts-5c3ce2a6-5a50-4886-8c45-b03722129c55\"},\"shared_office365\":{\"id\":\"/providers/Microsoft.PowerApps/apis/shared_office365\",\"connectionName\":\"shared-office365-9fdccb26-b082-4b8a-a0d5-5dcea492fb50\"}},\"definition\":{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"contentVersion\":\"1.0.0.0\",\"triggers\":{\"When_a_Shift_is_created,_updated_or_deleted\":{\"type\":\"OpenApiConnectionWebhook\",\"inputs\":{\"parameters\":{\"teamId\":\"11dc3c69-1515-4fad-b291-56651d17500e\"},\"host\":{\"apiId\":\"/providers/Microsoft.PowerApps/apis/shared_shifts\",\"operationId\":\"TriggerForShifts\",\"connectionName\":\"shared_shifts\"}},\"splitOn\":\"@triggerOutputs()?['body/value']\"}},\"actions\":{\"Get_a_Shift\":{\"type\":\"OpenApiConnection\",\"inputs\":{\"parameters\":{\"teamId\":\"@triggerOutputs()?['body/resourceData/teamId']\",\"shiftId\":\"@triggerOutputs()?['body/resourceData/id']\"},\"host\":{\"apiId\":\"/providers/Microsoft.PowerApps/apis/shared_shifts\",\"operationId\":\"GetShift\",\"connectionName\":\"shared_shifts\"}},\"runAfter\":{}},\"Condition\":{\"type\":\"If\",\"expression\":{\"equals\":[\"@triggerOutputs()?['body/changeType']\",\"create\"]},\"actions\":{},\"else\":{\"actions\":{}},\"runAfter\":{\"Get_a_Shift\":[\"Succeeded\"]}},\"Create_event\":{\"type\":\"OpenApiConnection\",\"inputs\":{\"parameters\":{\"table\":\"Calendar\",\"item/subject\":\"@outputs('Get_a_Shift')?['body/draftShift/displayName']\",\"item/start\":\"@outputs('Get_a_Shift')?['body/draftShift/startDateTime']\",\"item/end\":\"@outputs('Get_a_Shift')?['body/draftShift/endDateTime']\",\"item/timeZone\":\"Eastern Standard Time\",\"item/isReminderOn\":true,\"item/showAs\":\"busy\"},\"host\":{\"apiId\":\"/providers/Microsoft.PowerApps/apis/shared_office365\",\"operationId\":\"V4CalendarPostItem\",\"connectionName\":\"shared_office365\"}},\"runAfter\":{\"Condition\":[\"Succeeded\"]}}},\"outputs\":{},\"parameters\":{\"$authentication\":{\"defaultValue\":{},\"type\":\"SecureObject\"},\"$connections\":{\"defaultValue\":{},\"type\":\"Object\"}}},\"displayName\":\"Trigger: When a shift is created, updated, or deleted in Teams Shifts. Actions: Retrieve shift details and create, update, or delete the corresponding Outlook calendar event.\",\"environment\":{\"name\":\"Default-8b29cadb-7349-45a3-a96f-b514e71d7417\"},\"templateName\":\"78720f54e49444d0bd456477288a7ef7\"},\"telemetryMetadata\":{\"creationSource\":\"Portal\",\"modifiedSources\":\"Portal\"}}","team":"PowerAutomate","bodyDetails":{"locale":"en-US"},"axios-retry":{"retryCount":0,"lastRequestTime":1769709886557},"context":{"ppapiContext":{"endpoint":"default8b29cadb734945a3a96fb514e71d74.17.environment.api.powerplatform.com"}},"knownServiceId":"ppapi-pauto","activityId":"c2984800-ad36-42cf-8359-20282519acd5"},"request":{},"response":{"data":{"error":{"code":"InvalidOpenApiFlow","message":"Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Create_event': The parameter with value '\"@outputs('Get_a_Shift')?['body/draftShift/startDateTime']\"' in path 'item/start' with type/format 'String/date-time' is not convertible to type/format 'String/date-no-tz'.'."}},"status":400,"statusText":"","headers":{"access-control-allow-origin":"*","access-control-expose-headers":"Content-Type,Date,Server,Access-Control-Allow-Origin,Access-Control-Expose-Headers,Content-Length,x-ms-ppapigateway,x-ms-gateway-clusters,x-ms-failure-cause,x-ms-request-id,x-ms-correlation-request-id,x-ms-flow-mobile-ios-version,x-ms-armresiliency,x-ms-flow-routing-request-id,Strict-Transport-Security","cache-control":"no-cache, no-store","content-length":"417","content-type":"application/json; charset=utf-8","date":"Thu, 29 Jan 2026 18:04:51 GMT","strict-transport-security":"max-age=31536000; includeSubDomains","x-ms-armresiliency":"False","x-ms-correlation-request-id":"fc688eb5-2db7-4d1c-943b-a1b6f3098a12","x-ms-failure-cause":"OpenApiValidation","x-ms-flow-mobile-ios-version":"3.0.421","x-ms-flow-routing-request-id":"EASTUS:20260129T180451Z:3ef1c0ee-3f66-4630-9102-028bfa43ef56","x-ms-gateway-clusters":"prdil103eus","x-ms-ppapigateway":"_prdil103eusgb0_8","x-ms-request-id":"eastus:3ef1c0ee-3f66-4630-9102-028bfa43ef56"},"config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","accept-language":"en-US","x-ms-client-session-id":"2cbedd60-fd37-11f0-b134-735d1b019374","x-ms-client-request-id":"1bcfa687-2f7a-4004-be8c-35d6dd7574ee","authorization":""},"operationName":"PROCESSSIMPLE:POST/PROVIDERS/MICROSOFT.PROCESSSIMPLE/ENVIRONMENTS/FLOWS","params":{"api-version":"1"},"method":"post","url":"https://default8b29cadb734945a3a96fb514e71d74.17.environment.api.powerplatform.com/powerautomate/flows","data":"{\"properties\":{\"connectionReferences\":{\"shared_shifts\":{\"id\":\"/providers/Microsoft.PowerApps/apis/shared_shifts\",\"connectionName\":\"shared-shifts-5c3ce2a6-5a50-4886-8c45-b03722129c55\"},\"shared_office365\":{\"id\":\"/providers/Microsoft.PowerApps/apis/shared_office365\",\"connectionName\":\"shared-office365-9fdccb26-b082-4b8a-a0d5-5dcea492fb50\"}},\"definition\":{\"$schema\":\"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#\",\"contentVersion\":\"1.0.0.0\",\"triggers\":{\"When_a_Shift_is_created,_updated_or_deleted\":{\"type\":\"OpenApiConnectionWebhook\",\"inputs\":{\"parameters\":{\"teamId\":\"11dc3c69-1515-4fad-b291-56651d17500e\"},\"host\":{\"apiId\":\"/providers/Microsoft.PowerApps/apis/shared_shifts\",\"operationId\":\"TriggerForShifts\",\"connectionName\":\"shared_shifts\"}},\"splitOn\":\"@triggerOutputs()?['body/value']\"}},\"actions\":{\"Get_a_Shift\":{\"type\":\"OpenApiConnection\",\"inputs\":{\"parameters\":{\"teamId\":\"@triggerOutputs()?['body/resourceData/teamId']\",\"shiftId\":\"@triggerOutputs()?['body/resourceData/id']\"},\"host\":{\"apiId\":\"/providers/Microsoft.PowerApps/apis/shared_shifts\",\"operationId\":\"GetShift\",\"connectionName\":\"shared_shifts\"}},\"runAfter\":{}},\"Condition\":{\"type\":\"If\",\"expression\":{\"equals\":[\"@triggerOutputs()?['body/changeType']\",\"create\"]},\"actions\":{},\"else\":{\"actions\":{}},\"runAfter\":{\"Get_a_Shift\":[\"Succeeded\"]}},\"Create_event\":{\"type\":\"OpenApiConnection\",\"inputs\":{\"parameters\":{\"table\":\"Calendar\",\"item/subject\":\"@outputs('Get_a_Shift')?['body/draftShift/displayName']\",\"item/start\":\"@outputs('Get_a_Shift')?['body/draftShift/startDateTime']\",\"item/end\":\"@outputs('Get_a_Shift')?['body/draftShift/endDateTime']\",\"item/timeZone\":\"Eastern Standard Time\",\"item/isReminderOn\":true,\"item/showAs\":\"busy\"},\"host\":{\"apiId\":\"/providers/Microsoft.PowerApps/apis/shared_office365\",\"operationId\":\"V4CalendarPostItem\",\"connectionName\":\"shared_office365\"}},\"runAfter\":{\"Condition\":[\"Succeeded\"]}}},\"outputs\":{},\"parameters\":{\"$authentication\":{\"defaultValue\":{},\"type\":\"SecureObject\"},\"$connections\":{\"defaultValue\":{},\"type\":\"Object\"}}},\"displayName\":\"Trigger: When a shift is created, updated, or deleted in Teams Shifts. Actions: Retrieve shift details and create, update, or delete the corresponding Outlook calendar event.\",\"environment\":{\"name\":\"Default-8b29cadb-7349-45a3-a96f-b514e71d7417\"},\"templateName\":\"78720f54e49444d0bd456477288a7ef7\"},\"telemetryMetadata\":{\"creationSource\":\"Portal\",\"modifiedSources\":\"Portal\"}}","team":"PowerAutomate","bodyDetails":{"locale":"en-US"},"axios-retry":{"retryCount":0,"lastRequestTime":1769709886557},"context":{"ppapiContext":{"endpoint":"default8b29cadb734945a3a96fb514e71d74.17.environment.api.powerplatform.com"}},"knownServiceId":"ppapi-pauto","activityId":"c2984800-ad36-42cf-8359-20282519acd5"},"request":{}},"isAxiosError":true,"clientStatus":"Warning"}
 
 
Screenshot 2026-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard