Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
 View Only
  • 1.  Push notifications form Power Apps Teams

    Bronze Contributor
    Posted Mar 30, 2022 09: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
    ------------------------------


  • 2.  RE: Push notifications form Power Apps Teams

    Silver Contributor
    Posted Mar 31, 2022 03: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
    ------------------------------



  • 3.  RE: Push notifications form Power Apps Teams

    Bronze Contributor
    Posted Mar 31, 2022 05: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
    ------------------------------



  • 4.  RE: Push notifications form Power Apps Teams

    Bronze Contributor
    Posted Apr 01, 2022 02: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
    ------------------------------



  • 5.  RE: Push notifications form Power Apps Teams

    Bronze Contributor
    Posted Apr 04, 2022 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
    ------------------------------