cancel
Showing results for 
Search instead for 
Did you mean: 

Sending message from MS Outlook to SAP PI

jagesh_lakdawala
Active Participant
0 Kudos

Hello Experts,

Requirement:- I am generating the MS Outlook mail having the HTML content (Text and one hyperlink) using the mail receiver adapter(Asynchronous interface). I want when user click on hyperlink in mail body, it should trigger message to SAP PI pipelines by means of HTTP Request message (I know HTTP sender adapter/agreement is not required in PI).

I have set Href attribute of Hyperlink with the following URL(got from SDN).

http://hostname:port/sap/xi/adapter_plain?namespace=http://mynamespace.com&interface=OS_test&service...

Issue:-when i checked this URL through Internet Exploerer, get the error as 'Navigation to the webpage was canceled'.

getting the same error when i click on Hyperlink of the email body.

please suggest on below points.

(1)Is this feasible to send the messages to PI from MS Outlook mail body?

(2)I am passing Sender Business system in SERVICE parameter of HTTP sender URL, is it correct?

(3)If above two pints are ok then where I am wrong.

Thanks & Regards

Jagesh

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

> I want when user click on hyperlink in mail body, it should trigger message to SAP PI pipelines by means of HTTP Request message.

This is not possible.

HTTP adapter supports only HTTP POST commands, but clicking on a URL will process an HTTP GET command.

Besides: It is not possible to send an empty message (without payload)

jagesh_lakdawala
Active Participant
0 Kudos

Hi Stefan,

Thanks for your quick response as usual.

As an alternative, I am thinking as:-

when user clicks on Mail body hyperlink, call one ASP Web page by passing the required inputs in query string of HTTP Request URL for ASP web page,

Within this page, java script function will be executed on Form Load event which will post the message to SAP PI Pipelines as shown in below link.

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48...

Towards the end of the function, I will close the ASP page so it won't disply to the Mail user.

please suggest if you know any other way for this requirement.

Thanks & Regards

Jagesh

jagesh_lakdawala
Active Participant
0 Kudos

Hi Stefan,

Sorry for delaying the response.

fiinaly i used the same concept as i mentioned in my last reply.

However your reply put me on right track, Many Thanks for that.

Regards

Jagesh

Answers (0)