cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DBG_Wiehl
Level: Powered On

HTML problems in 'Out Of Office Extended' App

I have the extended Out Of Office App installed [ https://powerapps.microsoft.com/de-de/blog/extending-the-out-of-office-app/ ] and it runs quiet smoothly.
There is 'only' one thing that makes it a little odd.
While processing the absence message you can select various email recipients which are collected via:

 

 

 

Clear(MessageContacts);;
ForAll(ThoseToContact; Collect(MessageContacts; {MessageID:id; EmailURL:"<li><a href=mailto:" & Address & ">" & Name & "</a>"; Message: ""}));;
Navigate(CreateContactInfoScreen_1; None)

 

 

Spoiler
 

I understand all selected contacts will be collected and saved as a list element with a clickable mail link

The next screen applies this collection to a message text that should be in html:

 

 

UpdateIf(MessageContacts; Message = ""; {Message: " allgemeine Anfragen betreffend </li>"});;
Set(Regarding; Concat(MessageContacts; "<ul>" & EmailURL & Message & "</ul>"));;
Set(InternalMessage;"Sehr geehrte(r) Absender(in),

Ich bin " & Switch(ResponseType;"Allgemein";"außer Haus";"Beruflich";"beruflich bedingt außer Haus";"Urlaub";"im Urlaub";"Persönlich";"aus persönlichen Gründen außer Haus") &
" vom " & Text(StartTime; "[$-en-US]dd.mm.") & " bis zum " & Text(EndTime;"[$-en-US]dd.mm.") &
If(!IsBlank(EmailAccess); " 
und " & Lower(EmailAccess) & " Zugang zu Emails") &
If(Or(IsBlank(ContactUser);IsBlank(ContactUserEmail));
" und ";

". Bitte kontaktieren Sie: " 
& Regarding 
&". Andernfalls werde ich mich so schnell wie möglich mit Ihnen in Kontakt setzen.


Vielen Dank und mit freundlichen Grüßen,

" & User().FullName));;
Set(ExternalMessage;InternalMessage);;
Navigate(CreateReviewScreen;None)

 

 

 

Spoiler

 

So far so good. But when it comes to the outpout you see the html tags are NOT interpreted, so no list, no clickable mail-link...:

html_problem.jpg

I have tried various things but have not managed to get a clear and tidy html output.

Any help appreciated
Gunnar

2 REPLIES 2
Community Support Team
Community Support Team

Re: HTML problems in 'Out Of Office Extended' App

Hi @DBG_Wiehl ,

Have you set the IsHtml property to true within the Office365.V2CalendarPostItem() function or the Office365.SendEmail() function?

 

On your side, please consider remove the Office365 connection from your app, then re-create a new connection to Office 365 Outlook connector.

Note: The Office365 connection has been renamed into Office365Outlook.

 

On your side, please use the Office365Outlook connection to replace the previous Office 365 connection. Also please make sure that you have set the IsHtml property to true within the Office365Outlook.V2CalendarPostItem() or Office365Outlook.SendEmail() formula.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DBG_Wiehl
Level: Powered On

Re: HTML problems in 'Out Of Office Extended' App

Hi Kris,

 

thank you very much for your kind reply.
The problem here exists before(!) the mail is sent to a user. In the app itself the 'review' screen shows the html tags without being interpreted as html. The html-text itself is saved in a variable [called 'InternalMessage' resp. 'Regarding'] - maybe anything wrong here?

Best regards

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,823)