博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Salesforce中向外公布Service去创建Lead,并且用Asp.Net去调用此Service
阅读量:7235 次
发布时间:2019-06-29

本文共 1371 字,大约阅读时间需要 4 分钟。

1):在Salesforce中如何配置,向外公布此Service,请看如下链接:

   http://www.shellblack.com/marketing/web-to-lead/ 

 

2):如何在Asp.Net中调用此Service去创建对应的Lead,请看如下代码:

try            {                StringBuilder data = new StringBuilder();                data.Append("oid=[youroid]");                data.Append("&first_name=" + Server.UrlEncode(this.txtFirstName.Text));                data.Append("&last_name=" + Server.UrlEncode(this.txtLastName.Text));                data.Append("&email=" + Server.UrlEncode(this.txtEmail.Text));                string url = "https://test.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8";                HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);                req.Method = "POST";                req.ContentType = "application/x-www-form-urlencoded";                byte[] buffer = Encoding.UTF8.GetBytes(data.ToString());                req.ContentLength = buffer.Length;                using (Stream reqst = req.GetRequestStream())                {                    reqst.Write(buffer, 0, buffer.Length);                }                WebResponse response = req.GetResponse();            }            catch (Exception ex)            {            }

 

更多信息也可以看如下链接: https://success.salesforce.com/ideaView?id=08730000000Y07QAAS 

 

3): http://www.chronoengine.com/faqs/61-cfv4/cfv4-tutorials/4112-how-can-i-send-form-data-to-salesforce.html 

 

转载地址:http://yilfm.baihongyu.com/

你可能感兴趣的文章
使用lead分析功能相似的结构9*9乘法口诀功能
查看>>
SqlDateTime 溢出。必须介于 1/1/1753 12:00:00 AM 和 12/31/9999 11:59:59 PM 之间。
查看>>
关于点击空白关闭弹窗的js写法推荐
查看>>
PAT1009
查看>>
根据抓的包用代码模拟登录
查看>>
html中的src与href的区别
查看>>
Base64编码
查看>>
Installing Chocolatey
查看>>
python3+spark2.1+kafka0.8+sparkStreaming
查看>>
jstl自己定义函数的使用
查看>>
使用Visual Studio Code调试React Native报错
查看>>
FineUI 将不再内置 ExtJS (严格遵守 ExtJS 的开源规则)
查看>>
javascript 中contentWindow和 frames和iframe之间通信
查看>>
取得正在运行的Activity
查看>>
UVA 103 Stacking Boxes 套箱子 DAG最长路 dp记忆化搜索
查看>>
二分-hdu-4768-Flyer
查看>>
IE下target获得焦点时存在虚线的问题
查看>>
Web App开发入门
查看>>
PHP实现金额数字转换成大写函数
查看>>
QQ空间HD(1)-UIPopoverController基本使用
查看>>