Hello,
I'm developing an app using Power Apps for Teams, that needs to accept to the app in in Teams with a query parameter to open a specific record. This works when the query parameter is appended to the app link, for example:
https://apps.powerapps.com/play/e/<unknownguid>/a/<app-id>?tenantId=<tenant-id>?recId=179
, where recId is the parameter I'm trying to pass in.
The problem with this is that outside of Teams the app requires a license, so I'm trying to replicate this with a link within Teams. I've tried 2 patterns to get this to deep link into Teams:
https://teams.microsoft.com/l/entity/<app-id>/<app-id>?context=%7B%22recID%22%3A%22179%22%7D (URL Decoded: https://teams.microsoft.com/l/entity/<app-id>/<app-id>?context={"recID":"179"}
)
Not sure why the app-id is repeated, but saw that in most examples, but it doesn't make a difference if it's removed.
https://teams.microsoft.com/l/entity/<app-id>?recID=179
In both cases it opens that app in Teams, but doesn't pass the parameter. Some articles suggested this could be a timing issue, where Teams hasn't passed the parameter by the time the app is opened, but I believe I've ruled this out by including a button that checks the parameter manually.
Has anyone been able to do this succesfully?
Thanks,
Eric