cancel
Showing results for 
Search instead for 
Did you mean: 

Linking Design Studio apps to MS Outlook

Former Member
0 Kudos

Hello,

I have a button component in a Design Studio app which I would like to link
to an Outlook email client.

Example:

Button is named John Doe, user clicks on button and the onclick event calls
the Outlook client with John Doe's email already populated in the send to
field.

I am aware that URL parameters can be passed from one DS app to another but
not sure if this can be achieved with external applications such as MS Outlook.
Any help will be greatly appreciated.  Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

jeroenvandera
Contributor
0 Kudos

Hi,

try this :

APPLICATION.openNewWindow("mailto:someone@emailaddress.com");

it should open your email program.

kind regards,

Jeroen

Former Member
0 Kudos

Hi,

As Jeroen stated, the mailto function works perfectly for this case.

You can use all applicable parameters for the mailto function, and even use variables to use in the call to outlook:

var compcode = "1000";

APPLICATION.openNewWindow("mailto:someone@somewehere.com&subject=Issue in company code:"+compcode+"&body=Company code"+compcode);

Regards,

Sjoerd

Former Member
0 Kudos

Hi Jeroen,

Thank you for the solution (allthough it has been some time).

I've added this line to a button, when I click the button, the Outlook window opens but my application seems to keep loading and I can't do anything.

Do you experience the same or not?

Kind regards,

Jeroen

jeroenvandera
Contributor
0 Kudos

Hi Jeroen,

that is not something I experienced. Sometimes with outlook you have dialog boxes blocking the application. Is that a possible reason?

Jeroen

Answers (3)

Answers (3)

IngoH
Active Contributor
0 Kudos

Hello Mirza,

please keep in mind that it then opens the eMail using client side java scripting.

In case the ability to take the dashboard as attachment and send an eMail is an important functionality for your project, feel free to reach out to me as this is a functionality that is part of our Extensions for SAP BusinessObjects Design Studio.

regards

Ingo Hilgefort, Visual BI

Former Member
0 Kudos

Hi Ingo,

Is that functionality available in your current version of VBX 1.3.

Thanks,

Kishore

IngoH
Active Contributor
0 Kudos

Hello Kish,

it is part of the next release 1.4 - which is coming out mid January.

regards

Ingo Hilgefort

Former Member
0 Kudos

Hello Ingo,

Do we have a code wherein we can directly attach the pdf generated by expot to pdf button in the below code.

APPLICATION.openNewWindow("mailto:someone@somewehere.com&subject=Issue in company code:"+compcode+"&body=Company code"+compcode);

Thanks,

Himanshu

Former Member
0 Kudos

Hi Himanshu,

Unfortunately I don't have an answer on your question.

I do have a question about your code.
Do you know if (and how) it is possible to include a white line ("enter") in the body with code?

Kind regards,

Jeroen

Former Member
0 Kudos

Hi,

Is there any way to capture the current page screenshot to the email program when using

APPLICATION.openNewWindow("mailto:someone@emailaddress.com");

Thanks,

Kishore

Former Member
0 Kudos

Excellent, it works! Thanks Jeroen and S Van, appreciate your help.

Just an FYI, in my case since I had the emails changing dynamically I had to create a global script variable and mark it as URL parameter so that the email variable would change based on a certain selection. I then simply changed the value of the global variable email within a certain component to reflect this dynamic change. 

Best regards,

Mirza

Former Member
0 Kudos

Hi,

I don't think that's what a URL parameter does, URL parameters are used to filter the design studio application based on a substring you can use as a suffix to the opendocument URL.

The way you used the global variable is perfect though ofcourse!

Regards,

Sjoerd