function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Govardhan Reddy GuduruGovardhan Reddy Guduru 

Email to case and Web to case and Web to lead functionalities how to migrate from Sandbox to production

Email to case and Web to case and Web to lead functionalities how to migrate from Sandbox to production and how it will work like ex: for email to case Salesforce will give one big routing address so how we will manage this, also web to case/lead functionalities it will give us HTML code, how we can manage these all
Avishek Nanda 14Avishek Nanda 14
Hi Govardhan,

When you generate HTML in sandbox you will see sandbox instance like CS1, Cs2 in form action. If you have test.salesforce.com then it doesnt work it must be appropriate sandbox instance name like.

<form action="https://cs2.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST">

There is also an org id which should be sandbox orgid you are connecting.

for example If you are deploying to CS3 then above url will have CS3 instead of CS2. In production its different. In prod this url will be something like following with respective production org id inside orgid param

<form action="https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST">

The calling system must have to change sandbox url in action for different sandbox

https://help.salesforce.com/articleView?id=000004389&type=1
Additionally, there is change coming up for endpoints, 
https://help.salesforce.com/articleView?id=Updating-the-Web-to-Case-and-Web-to-Lead-Endpoint-URL&language=en_US&type=1


Regards,
Avishek Nanda