Hi,
I have a problem to create a calendar in a calendar group.
Here are my test steps.
Step.1 GET me/calendarGroups , and the server responses:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('92682859-6e88-468b-be3e-33ef4e677d83')/calendarGroups",
"value": [
{
"id": "AAMkADcwODlhZTMyLTY4M2EtNDJmNS1hOThlLTk4NjcwZTY5NTMxYgBGAAAAAACgynJHqMYvRIjOXZs4uNXyBwDhZkXigpZeQ7rmnw-sIOwEAAAAAAEGAADhZkXigpZeQ7rmnw-sIOwEAABwE3rvAAA=",
"name": "我的行事曆",
"classId": "0006f0b7-0000-0000-c000-000000000046",
"changeKey": "4WZF4oKWXkO65p8P7CDsBAAAcBn8sA=="
}
}
Step 2. Create a calendar in my calendar group which I get from step 1.
POST me/calendarGroups/AAMkADcwODlhZTMyLTY4M2EtNDJmNS1hOThlLTk4NjcwZTY5NTMxYgBGAAAAAACgynJHqMYvRIjOXZs4uNXyBwDhZkXigpZeQ7rmnw-sIOwEAAAAAAEGAADhZkXigpZeQ7rmnw-sIOwEAABwE3rvAAA=/calendars
Content-type: application/json
{
"name": "name-value"
}
and then the server responses error.
{
"error": {
"code": "ErrorInvalidIdMalformed",
"message": "Id is malformed.",
"innerError": {
"request-id": "c716830c-ef25-4f24-b5dd-e559d0b4b1eb",
"date": "2018-02-26T05:40:41"
}
}
}
Could you help me to figure out this problem?
Thanks.
Hi,
I found this kind of calendar_groups_id will be failed after I send create calendar api.
POST me/calendarGroups/AAMkADVmMzE2MjY0LTZkOGYtNGI4MS1iNWMxLTljYzg3MWY5MWQxMQBGAAAAAABZMfR36TVMQ6yunaqZPvVRBwAF9fKWjhbKTIB6dNkgJcvkAAAAAAEGAAAF9fKWjhbKTIB6dNkgJcvkAACeapv_AAA=/calendars
with request body:
Content-type: application/json
{
"name": "name-value"
}
and then the server response error too.
{
"error": {
"code": "ErrorInvalidIdMalformed",
"message": "Id is malformed.",
"innerError": {
"request-id": "399da8b7-dc20-4797-bebc-15ed2bc1e0ef",
"date": "2018-02-26T12:47:22"
}
}
}
Make sure you're URL Encoding the id before you're sending it over.
If your id is:
AAMkADVmMzE2MjY0LTZkOGYtNGI4MS1iNWMxLTljYzg3MWY5MWQxMQBGAAAAAABZMfR36TVMQ6yunaqZPvVRBwAF9fKWjhbKTIB6dNkgJcvkAAAAAAEGAAAF9fKWjhbKTIB6dNkgJcvkAACeapv_AAA=
You should be sending over (note that the = is encoded as %3D):
AAMkADVmMzE2MjY0LTZkOGYtNGI4MS1iNWMxLTljYzg3MWY5MWQxMQBGAAAAAABZMfR36TVMQ6yunaqZPvVRBwAF9fKWjhbKTIB6dNkgJcvkAAAAAAEGAAAF9fKWjhbKTIB6dNkgJcvkAACeapv_AAA%3D
Hi @mlafleur ,
Thanks for your suggestion.
I encoded the URL and send it again, but the server still responses the same error.
Besides, I also try to send the api via Graph Explorer but get the same error message no matter the URL has been encoded or not.
Not encoded

Encoded

This is easily reproducible. I don't see any way to add calendars (either new or existing) to a calendar group via the API. Assigned @crchung-MSFT to help.
Hi @jasonjoh
I follow this document to create a calendar in an existing calendar group.
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/calendargroup_post_calendars
I can create a calendar through the api if the calendar group id does not contain "_" or "-"; otherwise, it fails.
However, it's just my guest.
Could you help me to figure out this problem?
Thanks a lot.
That sounds like a bug on our side, but I'll defer to @crchung-MSFT on that :)
is there any progress ? has this bug been fixed ?
any progress? Having similar issue using Graph SDK for Mail Items / Folders
@crchung-MSFT @mlafleur ^^^
In my case this works WITH = but not work with %3D:
https://graph.microsoft.com/v1.0/me/mailFolders/{id} or {folderName}/messages/{id}/move
{
"DestinationId": "{id}"
}
and id is like 23JFGJOOREORJ.....=
@mishakogan @mlafleur
@JuForan can your team help here?
Hello,
any updates? It appears it's the same issues with getting childfolders from outlook.
if we use the
GET /users/{id | userPrincipalName}/mailFolders/{id}/childFolders example returns "ID malformed".
regardless if it's encoded or not.