question

ZachWilliams-7293 avatar image
0 Votes"
ZachWilliams-7293 asked Mamatha-MSFT answered

Word wrapping issue in Teams MessageCard

I am creating a MessageCard to a Teams Channel using a Webhook, but the issue is the MessageCard contents are not wrapping whole words, when the windo is resized tis cutting works up by the letter, not the entire word, so some lines have half a word ending them and half a word starting the next line. Is there a setting in the WebHook Rest JSON Body that will wrap the full words?

office-teams-app-devmicrosoft-graph-teamwork
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ZachWilliams-7293,

As we are mainly responsible for general issue of Microsoft Teams, your question which related to development is not in our scope. I will change office-teams-windows-itpro tag to office-teams-app-dev tag. Hope you get better response.


0 Votes 0 ·

Hi @ZachWilliams-7293 Could you please provide the MessageCard code snippets and screenshots. Just to confirm are you following this procedure.


0 Votes 0 ·

First Snippet.

82730-image.png


Body to construct message and send REST request:
82762-image.png



fact_item variable is passed as a JSON Array object, this is constructed from a series of flat strings and dates.

0 Votes 0 ·
image.png (43.3 KiB)
image.png (25.7 KiB)

@ZachWilliams-7293 I am able to repro the issue. Taking this with internal team.

0 Votes 0 ·
Mamatha-MSFT avatar image
0 Votes"
Mamatha-MSFT answered Mamatha-MSFT commented

@ZachWilliams-7293 We have a raised a bug for this issue and concerned team is working on it.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have a similar issue

0 Votes 0 ·

Hi @GeoffS-6977 Concerned team has raised a PR for this, soon the issue will be fixed and we don't have any ETA to share with you.

0 Votes 0 ·
Mamatha-MSFT avatar image
0 Votes"
Mamatha-MSFT answered

Hi @ZachWilliams-7293 and @GeoffS-6977 - The issue has been fixed. Please check.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.