0

I am using salesforce sandbox. When I tried to create Lead using Web To Lead I end up with no result.

when I submit the form I am getting following text,

Your request has been queued.

Record Information:

city: xxx
company: xxx
debug: 1
debugEmail: [email protected]
email: [email protected]
encoding: UTF-8
first_name: TestLead
last_name: TestLead
lead_source: web
oid: 00DO00xxxxxx
retURL: https://www.google.com/
state: state
submit: Submit Query

After getting the above information, I went to check the Lead panel, the lead is not created.

Note: My salesforce has custom domain name its not test.salesforce.com Please let me know if that is the problem. URL is, https://xxx.cs5.my.salesforce

    <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
    </head>

    <body>
    <!--  ----------------------------------------------------------------------  -->
    <!--  NOTE: Please add the following <FORM> element to your page.             -->
    <!--  ----------------------------------------------------------------------  -->

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

    <input type="hidden" name="oid" value="00DXXXXXXXXXXXX">
    <input type="hidden" name="retURL" value="https://www.google.com/">

    <!--  ----------------------------------------------------------------------  -->
    <!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
    <!--  these lines if you wish to test in debug mode.                          -->
        <input type="hidden" name="debug" value="1">          -                 
        <input type="hidden" name="debugEmail" value="[email protected]">                       
    <!--  ----------------------------------------------------------------------  -->

    <label for="first_name">First Name</label><input  id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>

    <label for="last_name">Last Name</label><input  id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>

    <label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="text" /><br>

    <label for="company">Company</label><input  id="company" maxlength="40" name="company" size="20" type="text" /><br>

    <label for="city">City</label><input  id="city" maxlength="40" name="city" size="20" type="text" /><br>

    <label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" /><br>

    <input type="submit" name="submit">

    </form>

    </body>

    </html>
13
  • You can try to debug by uncommenting <input type="hidden" name="debug" value="1"> <input type="hidden" name="debugEmail" value="[email protected]"> and putting your email address Apr 7, 2015 at 11:50
  • It's been done. I got "Your request has been queued." But no leads created. Thanks
    – Nandhu
    Apr 7, 2015 at 11:51
  • Are you also sure the org Id is the one from your sandbox, and not your production org Id? Apr 7, 2015 at 11:52
  • Yes, I am very sure. I have double checked it and I am having the sandbox ORG ID only not production org ID.
    – Nandhu
    Apr 7, 2015 at 11:55
  • Don't you also need to set a Lead Status? It's one of those required fields you can't get rid off, right? Apr 7, 2015 at 12:06

1 Answer 1

0

Check duplicate rule from setup and lead validation rule, you can temporarily disable both and test, you should get your lead.

Also, you should set an account you have access to Default Lead Creator, this way, if a lead is not created, you will get the error as to why, which will help you identify and fix the issue.

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Aug 28 at 6:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .