Page 1 of 1

call url from script in action

Posted: Thu Oct 01, 2009 1:51 am
by jhagstrand
Hi,
When I run an unsubscribe action, I want to call a web service on another server. (We have another system that needs to be notified when a customer unsubscribes.) How can I do that?
Thanks, John.

Re: call url from script in action

Posted: Thu Mar 31, 2011 4:54 pm
by Fatalin
We solved this by creating a form with entry action "load user data" and the following HTML Code in the success field:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
  <head>
  <meta http-equiv="refresh" content="1; URL=http://YOUR DOMAIN NAME&uid=$agnUID&email=$customerData.email">
  <title></title>
  </head>
  <body>
  </body>
</html>
From our external server we call another OpenEMM Form with the UID to continue processing the case within OpenEMM (follow-up action etc.).

Hope that helps.

Best Regards
Markus