Académique Documents
Professionnel Documents
Culture Documents
In a comment to the Blog Create, run and analyze an E-Mail Campaign with a Survey (Part 1) vijay kothari asked if it is possible to use surveys without providing a connection to the backend system as described in Setup SAP Web Dispatcher with URL Filter on SuSE Linux 9.0. So here is a solution to this problem: Use the mailto function to send the Survey answers via mail to the backend SAP CRM system.
Open the Folders Parameter XMLs -> mailto, Mark the default entry "CRM_SVY_PARAM_MAILTO.XML" and press F8 to export it to the local disk.
Adopt the file content and replace the Action with the local E-Mail address, also rename the File to "CRM_SVY_PARAM_MAILTO_CR4.XML":
This survey can be downloaded via Extras -> Download Presentation Format:
In the next screen you have to choose mailto as the send option, the Parameter XML uploaded before and Media Type Screen:
This resulted in the download of a TEST_MAIL.html file which I've downloaded to my local files:
Test Survey
With everything above prepared we can now doubleclick on the TEST_MAIL.html file created above and you will see this content in your Browser:
When you click Save you get a warning that the Form will be sent via E-Mail
And then you again have to confirm that it should be sent with Outlook:
You can verrify that the mail was processed in transaction CRM_SURVEY_SUITE when you choose your survey and click the Button "Evaluation" (Ctrl+Shift+F3):
On the next screen you should see the counter for the evaluated survey to be at least 1:
If you're running a Unicode CRM System you might have to check out SAP Note 1286258 - Unicode issues with IF_INBOUND_EXIT_BCS~PROCESS_INBOUND which solves an encoding issue which prevents incoming E-Mails to be processed on Unicode CRM Systems.
<?php
$to = 'crm.survey@crm.example.com';
while (list($key, $val) = each($_POST)) { if($key == 'MIG') { $message .= $key . '=' . $val . '&'; } else { $message .= $key . '=' . urlencode(rtrim($val)) . '&'; } }
$status = mail($to,'Survey',$message);
if($status) { echo "The Survey was sent and will be processed."; } else { echo "There was an error sending the Survey."; }
?>