11
Views
7
Comments
Open Outlook tasks by clicking a button

Hi, 

Is there any way to open the Outlook tasks by clicking a button? Much like the mailto, tel and file options.

Max

Rank: #493

Hi Max,

You can use 

"mailto:" + email

in the URL attribute of the RedirectToURL OnClick event.

Hope it helps.

Best regards.

Rank: #9117

Hi Kadu, 

That will just open an email. I want it to create a task. So I can create an item for a to do list. 


Rank: #493
Rank: #493

Hi Max,

Try this one here:

https://outlook.live.com/calendar/0/deeplink/compose?body=Description&enddt=2021-02-17T16:45:00+00:00&location=Location&path=/calendar/action/compose&rru=addevent&startdt=2021-02-17T16:15:00+00:00&subject="Title Of the Event"

Change the values as your needs and put it as the External URL of a link. I suggest that you encode the url (there is an OutSystems function for this)

I have made a test here and it works. You can also omitt values if you want.

Hope it helps

Rank: #9117

Hi Kadu,

What should I add at the location placeholder? This link will then open up the Outlook tasks screen with the correct input parameters, right?

Rank: #493

Hi Max,

I have made a quick example, so, some fixes are required, but it is possible to see how it works.

I also found a link that explains the attributes of the outlook link.

Outlook.oml

Rank: #493

I was wondering if creating a component to do it would be a good ideia. So I searched for it and found one. So, if the pure link above wasn't enough, you can try this one:

Add to Calendar

Rank: #9117

@Kadu Borges Thanks for all the input! I managed to get it working for the calendar items. 

I was actually trying to create a to-do item instead of a calendar item. https://to-do.office.com/tasks 

Where the calendar items has its own link that we can use to open and create, I can't find this for the Tasks. Any chance you would happen to know how to do this?

Thanks again for the other input, highly appreciated!