在Salesforce标准页面上使用Url传参 - Using URL parameters on Salesforce standard pages
2017-09-20 14:44
537 查看
Salesforce has many URL parameters can be used on its standard page, with this kind of parameters, you can do some URL hacking on it, as below:
Note: All of parameters must be encoded with UTF-8.
There are two ways to login and access into Salesforce from url.
https://test.salesforce.com/?
e146
un=yourname%40force.com&pw=123456&startURL=%2F001 https://login.salesforce.com/?un=yourname%40force.com&pw=123456&startURL=%2F001
https://test.salesforce.com/?sid=fyfxtCUtm2A3JwaRRDBE28&retURL=%2F001
https://ap.salesforce.com/001/e?cancelURL=%2F001&nooverride=1
https://ap.salesforce.com/001/e?00N10000007LHTd=012345&acc2=NewAccount
转载自:https://www.xgeek.net/salesforce/using-url-parameters-on-salesforce-standard-pages/
参考资料:https://help.salesforce.com/articleView?id=customize_functions_i_z.htm&type=0
Note: All of parameters must be encoded with UTF-8.
Login page
There are two ways to login and access into Salesforce from url.
1. https://<SFDC Instance Url>/
Parameter | Description |
---|---|
un | Username |
pw | Password |
startURL | The url will be redirected to after logged in |
e.g. login directly and redirect to Account list view.
https://test.salesforce.com/?e146
un=yourname%40force.com&pw=123456&startURL=%2F001 https://login.salesforce.com/?un=yourname%40force.com&pw=123456&startURL=%2F001
2. /secur/frontdoor.jsp
Parameter | Description |
---|---|
sid | Session ID |
retURL | The url will be redirected after logged in |
e.g. login with session ID and redirect to Account list view.
https://test.salesforce.com/?sid=fyfxtCUtm2A3JwaRRDBE28&retURL=%2F001
Edit / New page
Parameter | Description |
---|---|
retURL | The url will be redirected after opperation done. Note : this parameter works on almost all of Salesforce page. |
cancelURL | The url will be redirected after canceled, it has priority over retURL |
saveURL | The url will be redirected after saved, it has priority over retURL |
<Field input name> | Set a default value for field, field name needs to be the input name, which you can find it from Chrome Developer Tools as below capture. |
<Field input name>_lkid | Set a default id value for lookup field, e.g. acc3_lkid=001A000000i1zzz |
Field input name on edit page
e.g. Redirect to Account list after canceled
https://ap.salesforce.com/001/e?cancelURL=%2F001&nooverride=1
e.g. Set default values for field “Name” and “AccountCode__c” of Account
https://ap.salesforce.com/001/e?00N10000007LHTd=012345&acc2=NewAccount
Report
Parameter | Description |
---|---|
break | Summarize information by, e.g. break0=CUST_OWNER_NAME |
scope | Show scope, e.g. scope=user user : My Objects team : My team’s Objects useronly : User owned objects queue : Queue owned objects organization : All objects |
colDt_c | Date Field, e.g. colDt_c=DUE_DATE |
colDt_q | Date Range, e.g. colDt_q=curfy |
sdate | Date Range From, yyyy/MM/dd |
edate | Date Range To, yyyy/MM/dd |
pc | Condition field name, e.g. pc0=LAST_ACTIVITY |
pn | Condition, e.g. pn[0]=eq eq : equals ne : not equal to lt : less than gt : greater than le : less or equal ge : greater or equal co : contains nc : does not contain sw : starts with |
pv | Condition value |
details | Shows detail, yes or no |
sort | Sort by field, e.g. sort=ACCOUNT.NAME |
参考资料:https://help.salesforce.com/articleView?id=customize_functions_i_z.htm&type=0
相关文章推荐
- java使用rest api登录salesforce | How to do authentication to salesforce from java class using Rest API
- 在Salesforce页面布局中添加Visualforce Pages项 - 自定义标准页面 + 获取富文本字段的图片Url
- salesforce rest api 登录 | Authenticating to Salesforce using REST, OAuth 2.0 and Java
- salesforce 零基础学习(五十一)使用 Salesforce.com SOAP API 实现用户登录以及简单的增删改查(JAVA访问salesforce)
- Salesforce VisualForce在页面中使用REQUIRESCRIPT函数
- salesforce extendsion and standart component 继承和标准组件的使用
- 使用iframe如何通过url传参把数据从一个页面传到另一个页面(contentWindow)
- salesforce rest api 登录 | Authenticating to Salesforce using REST, OAuth 2.0 and Java
- Salesforce-在VisualForce页面的JS中使用Controller的对象集合
- 在Salesforce中使用Javascript调用Apex方法 - Salesforce RemoteAction and webService
- 使用HttpURLConnection访问web页面
- ASP.NET中,页面刷新后跳转到刷新前的位置 MaintainScrollPositionOnPostback属性的使用
- [网络收集]回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证
- operamasks url传参 乱码, operamasks xhtml页面url 传参 中文乱码
- .net的ajax中使用javascript的send方法post参数,url传参,ajax同步异步JS包,传参即可用
- dedecms织梦5.x中,在页面模板里直接使用跳转链接redirecturl而不是织梦链接arcurl的解决办法
- Forefront TMG 2010: Using malware inspection and URL filtering for FTP on access rules
- 使用UrlRewritingNet重写url以.html的伪静态页面后,真实的.html无法访问的解决方法
- web开发之制作页面弹出窗口(url传参提交)
- 使用jQuery.get(url,[data],[callback])不能获取返回的页面XML内容