Crisis Communication MicrosoftGraphRequestFail Error - power-automate

According to the step Update the Request for help flow (https://learn.microsoft.com/en-us/powerapps/maker/canvas-apps/sample-crisis-communication-app#update-the-request-for-help-flow)
My Channel ID is 19%3a09e59828c958486d86047491bc58XXXX%40thread.skype
different with the Channel ID with the end of thread.tacv2
Is that a problems to connect to the teams?
Because at the end , I had trigger the Team notification and I'm owner of the Team channel but the error shown as below
Here with the Error Shown
Forbidden. The request failed.
Error code: 'MicrosoftGraphRequestFailed'.
Error Message: 'Request to the Microsoft Graph failed with error: '{ "error": { "code": "Forbidden", "message": "Forbidden", "innerError": { "date": "2020-10-14T00:28:37", "request-id": "464af498-a707-49dd-8e5f-1572053e89fe", "client-request-id": "dbdab131-e774-4f84-b4a0-3543b8e8e300" } } }'.'.

The Power Automate app must be installed within the team. This typically happens silently the in the background, but in cases where app install is disabled in the tenant, it can't be done.
It's failing with the below message internally -- I've opened a bug to track exposing a better message here with recommendations for the end user.
You'll want to install the "Flow" (soon to be "Power Automate") app into the team. Manage Team -> Apps -> More Apps
Failed to install Flow app for team '4a3c74d4-a801-44fc-8cb6-4f6ba8397621' with status code 'Forbidden' and error message '{
"error": {
"code": "Forbidden",
"message": "Forbidden",
"innerError": {
"date": "2020-10-14T00:28:37",
"request-id": "464af498-XXXX-XXXX-XXXX-1572053e89fe",
"client-request-id": "dbdab131-XXXX-XXXX-XXXX-3543b8e8e300"
}
}
}'.

Related

How do you subscribe to push notifications in microsoft graph?

I have been trying to figure out how to use the beta notifications resource to send push notifications to users in Teams, but I cannot get past step 1.
User signs in to your application, which creates a subscription with the Microsoft Graph notification service.
I am not using a language with Microsoft library support so I cannot use their SDKs. Instead, I am manually sending http requests. I have tried many, but I can't even nail down what the "resource" is supposed to be in the subscription type. Here are some of the things I have tried and the results:
Sending this message:
{
"changeType": "created",
"notificationUrl": "https://(...)/notifications",
"resource": "me/notifications",
"expirationDateTime": "2020-11-04T18:23:45.9356913Z"
}
Results in:
{
"error": {
"code": "InvalidRequest",
"message": "Subscription for resource 'me/notifications' is not supported.",
"innerError": {
"date": "2020-11-04T17:12:24",
"request-id": "66172d3c-298d-47d4-babb-52d96ef42179",
"client-request-id": "1c20849c-fcda-0b07-56e3-5bed08bb28e4"
}
}
}
The above message also correctly calls my server's /notifications route with this param:
Validation: Testing client application reachability for subscription Request-Id: 2f3cc3b8-b2c2-5922-451c-433add43bc74
Sending this one:
{
"changeType": "created",
"notificationUrl": "https://(...)/notifications",
"resource": "notification",
"expirationDateTime": "2020-11-04T18:23:45.9356913Z"
}
Results in:
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'notification'.",
"innerError": {
"date": "2020-11-04T17:21:15",
"request-id": "d894c93b-9dac-4051-a3af-cb6039f1394b",
"client-request-id": "84d18ec7-2c67-8240-b576-03641b3b5a59"
}
}
}
I have also tried "notifications", "users/me/notifications", and a few others to no avail. What's the deal, Microsoft? This resource isn't even listed under the possible subscription types in the beta docs, so is it supported or not?
At this point I'm pretty sure this functionality just doesn't work/exist.

Unable to delete conversationMember from a private channel

I have created a private channel in a team and added members to it using the Microsoft graph beta API. But I'm not able to remove a member from the channel.
I call this method DELETE https://graph.microsoft.com/beta/teams/{teamid}/channels/{channelid}/members/{id}, but I receive this response "error": {
"code": "BadRequest",
"message": "Invalid id '{id}' provided.",
"innerError": {
"request-id": "11d58a76-d953-49ce-a086-418ce5eea09b",
"date": "2020-05-29T04:37:21"
}
}
According to the documentation I might be getting this if channel isn't private. But in my case, it is. Also I am able to retrieve the user by calling this: https://graph.microsoft.com/beta/users/{id}.
Does this sound familiar to anyone else? What am I doing wrong?

Getting this error in MS Teams graph API: "Value cannot be null.\r\nParameter name: value"

When I create a group in MS Teams using REST API in postman.
URL: https://graph.microsoft.com/beta/groups
Request Body:
{
"description": "Self help community for golf",
"displayName": "Golf Assist",
"groupTypes": [
"Unified"
],
"mailEnabled": true,
"mailNickname": "golfassist",
"securityEnabled": false
}
I got an error. Error is given below.
{
"error": {
"code": "InternalServerError",
"message": "Value cannot be null.\r\nParameter name: value",
"innerError": {
"request-id": "4a57c3e2-47a4-46bd-a5bb-a00a612fd613",
"date": "2019-04-02T16:31:30"
}
}
}
How can I correct this issue?
We've checked the logs on your request and it appears that you are calling the graph with a Microsoft Account (aka MSA) versus an Azure Active Directory (Azure AD) account. Microsoft Graph APIs for Teams do not support MSA accounts, only Azure AD accounts.
I am seeing the Same exact error when trying to Create a Shift in Teams.
This one is still in Beta.

Can't subscribe a GMB business to pub/sub push notifications

I spent several hours trying to solve this stuff.
I need to subscribe a gmb business to pub/sub push notifications. I was able to send/receive messages via gcloud console. Successfully created a topic and a subscription. The problem is that i need to subscribe gmb accounts , but I'm getting this error:
(had to edit this question, the code is better than images)
The request:
PUT https://mybusiness.googleapis.com/v4/accounts/102834134483270918765/notifications
{
"topicName": "projects/probable-pager-194417/topics/fetchReviews",
"notificationTypes": [
"NEW_REVIEW", "UPDATED_REVIEW", "GOOGLE_UPDATE"
]
}
The Response:
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"#type": "type.googleapis.com/google.mybusiness.v4.ValidationError",
"errorDetails": [
{
"code": 3,
"message": "Invalid topic name provided for subscription. Ensure that the topic exists and is shared with the GMB API service account.",
"value": "projects/probable-pager-194417/topics/fetchReviews"
}
]
}
]
}
}
Finally i found the solution. You need to give Pub/Sub Publisher permission in your topic to this account: 'mybusiness-api-pubsub#system.gserviceaccount.com. Have no idea why.
**Exactly that string

Getting 401 response in google developer api only when query GET subscriptions

I'm using Google Play Android Developer API. I access it from server with service account. I have private key and got access token with it.
I use scope https://www.googleapis.com/auth/androidpublisher. And when I ask subscription info, I got 401 error:
"error": {
"errors": [
{
"domain": "androidpublisher",
"reason": "permissionDenied",
"message": "The current user has insufficient permissions to perform the requested operation."
}
],
"code": 401,
"message": "The current user has insufficient permissions to perform the requested operation."
}
But when I use other queries with the same token and with the same scope, I got successfull responses. For example, I can successful get voided purchases list or info about inapp product:
200 OK
{
"packageName": "com.myapp.exapmle",
"sku": "subscr_month",
"status": "active",
"purchaseType": "subscription",
"defaultPrice": {
"priceMicros": "149000000",
"currency": "RUB"
}
What could be the cause of the problem? I added this service account to developer console and provided all permissions (administrator access).

Resources