Push notifications form Power Apps Teams

  • Push notifications form Power Apps Teams

    Posted by DSC Communities on March 30, 2022 at 9:31 am
    • Tina Kronborg

      Member

      March 30, 2022 at 9:31 AM

      Hello everyone
      I have made a Power Apps from Teams and try to send out push notifications. I follow Reza Dorranis very nice Create push notifications for Power Apps mobile – Tutorial, but something is not working as I hope šŸ™‚
      I have this code:
      PowerAppsNotification.SendPushNotification({recipients:[User().Email], message:”There is a comment in your WeWalkSDU Team Chat”, openApp:true})
      but got the following error:
      PowerAppsNotification.SendPushNotification failed: { “error”:{“code”: “ApplicationNotFoound”, “message”: “The application ‘63220a-4f-36c9-4162-8-b45-138c6c95a640’ could not be found in the tenant ‘9a97c27d-b83e-4694-b353-54bdbf18ab5b’.”}}
      I have add the app Id to the connection, it act a little wired in Power App from Teams, but I don’t know if it is because of Teams I got the error.

      I have another question šŸ™‚ If someone know how to fix the first, I also like to send the push notification to a group of people selected from a gallery is that possible?

      Thanks in advance!

      ——————————
      Tina Kronborg
      Academic staff
      Tommerup
      +45 26 84 48 06
      ——————————

    • Koen Mathijs

      Member

      March 31, 2022 at 3:14 AM

      Hi Tina,

      I don’t create push notifications directly in PowerApps but I use the “Send Push Notifications v2” control in Power Automate to do this. My app has a button which creates an online MS Project file and after creations sends a push notification to my mobile.
      You can enter as many recipients as you want in the control.

      This works great but the Power Apps app needs to be running in the background in order to receive the notifications I noticed.

      Maybe this can help you?

      ——————————
      Koen Mathijs
      ——————————
      ——————————————-

    • Tina Kronborg

      Member

      March 31, 2022 at 5:11 AM

      Hi Koen
      Thanks for answer!
      I tried with the v2 as well, but with same result.
      Yes I can use as many recipients as I like, but what is the code when I like to send to the emails I have in a specific gallery?
      It is difficult for me to try the codes when there is something else wrong šŸ™‚
      Best
      Tina

      ——————————
      Tina Kronborg
      Academic staff
      Tommerup
      +45 26 84 48 06
      ——————————
      ——————————————-

    • Tina Kronborg

      Member

      April 1, 2022 at 2:08 AM

      For information, did I solve the problem with the error myself :-). When you work from Teams, it apparently is the Session ID shown and not the app ID, I found the App ID under Session details.
      But I still have the problem whit the recipients, I like that the emails shown in a Gallery have the notification. It dosen’t have to be from a Gallery but I need to have sortet the recipients from my dataverse tabel.
      Hope someone have some suggestions.
      Best
      TIna

      ——————————
      Tina Kronborg
      Academic staff
      Tommerup
      +45 26 84 48 06
      ——————————
      ——————————————-

    • Tina Kronborg

      Member

      April 4, 2022 at 12:50 AM

      I have also had this conversations, which apparently not are shown šŸ™‚Ā 

      Message From: Harold Kless

      HI Tina,
      Is your list of emails in the gallery a single field or is each email in a separate field.

      Regards,
      Harold

      ——————————
      Harold Kless
      Microsoft Power Platform
      TX

      Hi Harold
      It is in a separate field, but I can have the email in whatever is possible from a Dateverse tabel. The app I have made are used to type in all the exercise/steps per day and to make teams of colleagues that competes with each other. The push notifications is because I have made a chat where each team can communicate and I like to get all team members a notification when there is a new message. It is only teams members form the same team who have access to the chat, so I have already made a sort. What I tried was just to have a Gallery with the emails, but I can’t figure out how to announce that correct in recipients.
      Best
      Tina

      ——————————
      Tina Kronborg
      Academic staff
      Tommerup
      +45 26 84 48 06
      ——————————
      ——————————————-

    DSC Communities replied 4 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Push notifications form Power Apps Teams’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!