Web-to-Case In Salesforce
Creating a Web-to-Case form in Salesforce enables you to automatically convert customer inquiries submitted through your website into cases within your Salesforce.
Turn On and Customize Web-to-Case
Generate and Test Your Web-to-Case Form
To test the Web-to-Case form, add the line <input type="hidden" name="debug" value="1"> to the code. This line redirects you to a debugging page when you submit the form. Don’t forget to remove it before publishing the Web-to-Case page on your website.
5,000 cases in a 24-hour period. When you reach the 24-hour limit, additional requests are stored in a pending request queue that contains both Web-to-Case and Web-to-Lead requests
Unsupported Content Types
Web-to-Case forms don’t support the following content types:
- Attachments
- Rich text area (RTA) fields—If you use these fields on your forms, any information entered in them is saved as plain text when the case is created.
- Multipart/form-data—Cases aren’t created for forms that use this content type.
- Script tags—When script tags are submitted in Web-to-Case forms, the tags are saved as plain text in the case details.
Here are the steps to follow
Here's a simple example of what the HTML code for the Web-to-Case form might look like:
<form action="https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST"><input type=hidden name="orgid" value="00DXXXXXXXXXXXX">
<input type=hidden name="retURL" value="https://salesforceplayground.blogspot.com/thankyou">
<label for="name">Name</label>
<input id="name" maxlength="80" name="name" size="20" type="text" required /><br>
<label for="email">Email</label>
<input id="email" maxlength="80" name="email" size="20" type="email" required /><br>
<label for="subject">Subject</label>
<input id="subject" maxlength="80" name="subject" size="20" type="text" required /><br>
<label for="description">Description</label><br>
<textarea id="description" name="description" rows="4" cols="50" required></textarea><br>
<input type="submit" name="submit">
</form>
Replace "00DXXXXXXXXXXXX" with your Salesforce organization ID.
Replace "https://salesforceplayground.blogspot.com/thankyou" with the URL of the page where you want to redirect users after they submit the form.
This form includes fields for Name, Email, Subject, and Description. You can customize it by adding or removing fields as needed. When a user submits the form, a new case will be created in Salesforce with the provided information.



Comments
Post a Comment