您的位置:首页 > 其它

在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.


Login page

There are two ways to login and access into Salesforce from url.


1. https://<SFDC Instance Url>/

ParameterDescription
unUsername
pwPassword
startURLThe 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

ParameterDescription
sidSession ID
retURLThe 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

ParameterDescription
retURLThe url will be redirected after opperation done. 

Note : this parameter works on almost all of Salesforce page.
cancelURLThe url will be redirected after canceled, it has priority over retURL
saveURLThe 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>_lkidSet 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

ParameterDescription
break
Summarize information by, e.g. break0=CUST_OWNER_NAME
scopeShow 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_cDate Field, e.g. colDt_c=DUE_DATE
colDt_qDate Range, e.g. colDt_q=curfy
sdateDate Range From, yyyy/MM/dd
edateDate 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
detailsShows detail, yes or no
sortSort by field, e.g. sort=ACCOUNT.NAME
转载自: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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐