Skip to content

Instantly share code, notes, and snippets.

@samuel-alves
samuel-alves / Web2Case.html
Created February 23, 2023 17:12 — forked from mhamzas/Web2Case.html
Salesforce Web to lead and Web to Case using Javascript [CORS Proof !]
<script type="text/javascript">
// Case Data preparation
var postData = {
oid: '00D0b000000xxxx', //Put your ORGID here
name:'John Smith',
company:'ACME',
email:'[email protected]',
origin:'Web',
subject:'Web2Case using the custom API',