Using URL parameters on Salesforce standard pages
- Apr
- 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
Recent Posts
- 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 JUST HIT 10,000 USERS! THANK YOU!
- Using Promise for Apex Server-Side request in Lightning Component
Top Posts
- Salesforce DevTools – Powerful Salesforce developer tools, loved by over 50K developers - 222.7K views
- Date format and DateTime format - 206.9K views
- Salesforce Mass Editor (Chrome Extension) – Mass create, mass update, mass clone, mass delete on any list view. Support for both Classic and Lightning! - 159.5K views
- Setup an awesome Salesforce developer environment with Sublime Text 3 - 122.6K views
- Writing a Schedulable Batch Apex in Salesforce - 121.6K views
Categories
- APEX
- Apps
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- Event
- 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
You must be logged in to post a comment.