Use Markdown in DeepLink

%3CLINGO-SUB%20id%3D%22lingo-sub-1503953%22%20slang%3D%22en-US%22%3EUse%20Markdown%20in%20DeepLink%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1503953%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20would%20like%20to%20use%20deep%20link%20to%20generate%20Meeting%20Invitation%20with%20hyperlink%20in%20the%20body.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20you%20the%20following%20documentation%20%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbuild-and-test%2Fdeep-links%23generating-a-deep-link-to-the-scheduling-dialog%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fbuild-and-test%2Fdeep-links%23generating-a-deep-link-to-the-scheduling-dialog%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20tried%20%5Btext%20to%20lin%5D(link)%20%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Flin%22%20target%3D%22_blank%22%3Etext%20to%20link%3C%2FA%3E%20with%20no%20luck.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20have%20hyperlink%20in%20body%20%3F%20if%20yes%2C%20could%20you%20explains%20how%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1503953%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBots%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1505073%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20Markdown%20in%20DeepLink%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1505073%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20done%20further%20tests%20and%20we%20are%20also%20looking%20for%20advice%20on%20line%20break%20with%20deeplink.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello,

 

We would like to use deep link to generate Meeting Invitation with hyperlink in the body.

 

We are you the following documentation : https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links#generati...

 

We tried [text to lin](link) , <a href=lin>text to link</a> with no luck.

 

Is it possible to have hyperlink in body ? if yes, could you explains how ?

 

Thank you

2 Replies

We have done further tests and we are also looking for advice on line break with deeplink.

@LoicM 

same problem for now, with this code :

let startText = `Rappel du dossier [${dossier}]`+encodeURIComponent(`${iwsUrl}${dossier}`);
                    return  <div style={{textAlign:"center"}}>
                                <Tooltip title="Créer la conférence d'incident majeur">
                                    <a  onClick={e => e.stopPropagation()}
                                        href={`https://teams.microsoft.com/l/chat/0/0?users=${members}&topicName=${topic}&message=${startText}`}
                                        target="_blank">
                                        <Group style={{fill:commColors[7]}}/>
                                    </a>
                                </Tooltip>
                            </div>
                }

I have to type 2 spaces after the first line to get the markdown recognized.

 

Note : 2 line breaks result in one real line break in the message created by the deeplink :)

let startText = `Rappel du dossier [${dossier}]`+encodeURIComponent(`${iwsUrl}${dossier}

FIN`);