# NylasSchedulerEditor throws error for outlook calendar as calendar id alphanumeric

**URL:** <https://forums.nylas.com/t/nylasschedulereditor-throws-error-for-outlook-calendar-as-calendar-id-alphanumeric/581>\
**Category:** Question and Answers\
**Tags:** scheduler\
**Created:** [November 25, 2024, 5:10pm UTC](https://forums.nylas.com/t/nylasschedulereditor-throws-error-for-outlook-calendar-as-calendar-id-alphanumeric/581 "2024-11-25T17:10:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nawaz.akhtar](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nawaz.akhtar](https://forums.nylas.com/u/nawaz.akhtar)\
**Post date:** [November 25, 2024, 5:10pm UTC](https://forums.nylas.com/t/nylasschedulereditor-throws-error-for-outlook-calendar-as-calendar-id-alphanumeric/581/1 "2024-11-25T17:10:14Z")

</div>

We are using NylasSchedulerEditor component from nylas/react, in the following way :  
\<NylasSchedulerEditor  
nylasApiRequest={nylasApiRequest}  
defaultSchedulerConfigState={defaultSchedulerConfigState}  
requiresSlug  
schedulerPreviewLink={`${window.location.origin}/schedules/{config.id}/{slug}`}  
/\>  
For nylasApiRequest we have overided all four methods something like this

1. Request method we are doing something like this  
async request(args) {  
try {

2. currentUser  
async currentUser() {  
const response = await fetch(‘NYLAS\_BASE\_URL/v3/grants/me’, {  
method: ‘GET’,  
headers: {  
Authorization: `Bearer ${this.accessToken}`,  
‘Content-Type’: ‘application/json’,  
},  
});

3. setDeafultAuthArgs  
async setDefaultAuthArgs(authArgs: never) {  
return authArgs;  
}

4. authenthicationUrl  
async authenticationUrl() {  
return `${window.location.origin}/login`;  
}

When we submit the SchedulerEditor, it makes a POST request to NYLAS\_BASE\_URL/v3/grants/me/scheduling/configurations which by default picks up wrong calendar in it’s body because calendar\_id in case of outlook calendar is something like ‘AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0AooplM-I8wkmVHh-1SFxiLAAAAAAUlQAA’ and we run into error like  
“error”: {  
“type”: “invalid\_request\_error”,  
“message”: “Calendar [username@outlook.com](mailto:username@outlook.com) does not belong to [username@outlook.com](mailto:username@outlook.com)”  
}  
Note: This only happens for microsoft calendar, as calendarId is aplhanumeric

---

<div class="post-metadata">

**Author:** ![akay](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@akay](https://forums.nylas.com/u/akay)\
**Post date:** [October 30, 2025, 3:52am UTC](https://forums.nylas.com/t/nylasschedulereditor-throws-error-for-outlook-calendar-as-calendar-id-alphanumeric/581/2 "2025-10-30T03:52:56Z")

</div>

Archived on October 30, 2025, 3:52am UTC


