Unable to Include Message Body in Microsoft Graph Subscription Resource URL
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- api
Hướng nghiên cứu
Start with the Microsoft Graph subscription resource URL documentation and compare its supported query parameters with the posted payload, especially $select=body and $select=bodyPreview. Check the linked Stack Overflow discussion for context. Done means documenting a supported way to receive the full body or clearly confirming the API limitation and expected alternative.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
I'm encountering an issue while attempting to create a subscription to receive change notifications, including resource data, in the Microsoft Graph API. Here's the payload I'm using:
{
"changeType": "created",
"notificationUrl": "<URL>",
"resource": "me/mailFolders('Inbox')/messages?$select=body",
"expirationDateTime": "2024-02-26T21:00:00.000Z",
"latestSupportedTlsVersion": "v1_2",
"includeResourceData": "true",
"encryptionCertificate": "<SOME VALUE>",
"encryptionCertificateId": "<SOME VALUE>"
}
However, upon sending a POST request with this payload, I'm encountering the following error message:
$top, $skip, $orderby, $select=body,uniqueBody and $expand other than singleValueExtendedProperties,multiValueExtendedProperties are not supported in subscription resource Url.
This error suggests that including $select=body in the resource URL is not permitted. If I exclude $select=body, I encounter a different error:
"select clause should be present in query string to support rich notifications"
This indicates that a select clause is required in the query string to support rich notifications.
Additionally, when I attempted to use $select=bodyPreview, I only received a truncated version of the body limited to 255 characters.
My objective is to receive change notifications including the entire body of the resource. I'm seeking guidance on how to achieve this.
I also created a post on StackOverFlow : https://stackoverflow.com/questions/78057126/select-body-not-working-while-creating-subscription-microsoft-graph-api
- Ngôn ngữ chính
- TypeScript
- Star
- 833
- Fork
- 240
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoftgraph/msgraph-sdk-javascript
-
status:waiting-for-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
-
Is anyone here? Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
microsoftgraph/msgraph-sdk-javascript#2005 · 1 reaction ·
-
Is it really correct that the Javascript version of the graph SDK doesn't offer typed requests? Đang mởstatus:waiting-for-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
-
status:waiting-for-triage type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
microsoftgraph/msgraph-sdk-javascript#1999 · 2 bình luận · 1 reaction ·
-
status:waiting-for-triage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của microsoftgraph/msgraph-sdk-javascript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
area:tools bug good first issue help wanted priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·