I am opening share dialog with a link in msgText. It works fine when link is small but if link is long it doesn't show link at all.
For Example Long link they won't show only message and remove link.
For small link it will work fine. Share dialog will show message and link both.
Is there any way to avoid this problem.
Also it makes link into small case which is problem when URL for some application is Case-Sensitive.
There seems to be a general limitation to the length of the text message that you can use. (200 characters currently) Since your message is longer, it is truncated and then not displayed correctly.
Instead of specifying the link as part of the text message, you can specify it as a separate href parameter.
https://teams.microsoft.com/share?msgText=Your Text&href=someUrl
Pay attention that "Your Text" and "someUrl" must be url-encoded.
So this works for me:
https://teams.microsoft.com/share?msgText=Visit%20For%20amazing%20Google%20photos&href=https%3A%2F%2Fccw-720.wdf.sap.corp%2Fui%3Fsap-ui-version%3Ddevmsteams%23SalesOrder-manage%26%2F%3Fsap-iapp-state--history%3DTASCNVB8NKP5OAF3ZHAZEEBJ2WZ08RPD1P69AH5CT%26sap-iapp-state%3DAS481NYTPUN81SSS85M0XFQ6DLJ3HF9PPF00J0YL