Salesforce标准页面上的URL参数整理
- 4月
- 08
- Posted by Lin
- Posted in Other, Salesforce
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.
Reference :
http://blog.livedoor.jp/minoaw/archives/1388267.html
http://raydehler.com/cloud/clod/salesforce-url-hacking-basics-with-returl-saveurl-and-cancelurl.html
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/?un=yourname%40force.com&pw=123456&startURL=%2F0012. /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=%2F001Edit / 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=1e.g. Set default values for field “Name” and “AccountCode__c” of Account
https://ap.salesforce.com/001/e?00N10000007LHTd=012345&acc2=NewAccountReport
Parameter | Description |
---|---|
break[n] | 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[n] | Condition field name, e.g. pc0=LAST_ACTIVITY |
pn[n] | 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[n] | Condition value |
details | Shows detail, yes or no |
sort | Sort by field, e.g. sort=ACCOUNT.NAME |
http://blog.livedoor.jp/minoaw/archives/1388267.html
http://raydehler.com/cloud/clod/salesforce-url-hacking-basics-with-returl-saveurl-and-cancelurl.html
近期文章
- Salesforce DevTools Release Notes (version 3.10.0) – mass edit custom fields on lightning
- Salesforce DevTools Release Notes (version 3.9.0)- Object Fields, SOQL Query Editor
- Salesforce DevTools Release Notes (version 3.8.0)
- Salesforce DevTools的开发者用户突破10,000名!THANK YOU!
- Lightning Component中使用Promise处理Apex服务端请求
Top Posts
- Salesforce DevTools – Saleforce开发者必备Chrome扩展 - 225K views
- Date format 与 DateTime format - 208.7K views
- Salesforce批量编辑 (Chrome扩展) – 在任何标准视图上进行批量插入, 拷贝, 更新, 删除, 支持Classic与Lightning! - 160.5K views
- 编写一个可被计划执行的Batch Apex - 123.5K views
- 用Sublime Text 3架设Salesforce的快速开发环境 - 122.9K views
分类目录
- APEX
- 应用
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- 交流会
- Heroku
- iOS & Object-c
- Lightnint Component
- Linux & Mac OS
- Metadata API
- Node.js
- Open Source
- Other
- PHP Framework
- Release Notes
- REST API
- Salesforce
- Salesforce DevTools
- Salesforce DX
- SOQL
- Tooling API
- Unit Tests
- Validation Rule
- Visualforce
- WordPress
您必须登录才能发表评论。