You need to sign in to do that
Don't have an account?
Pritam Shekhawat
Salesforce URL record id replaced with account object mobile__c field
Hello everyone , currently am working on one Requirement of my client . He want to replace the record id for account object with required custom field mobile__c . By default salesforce url for some account record is https://ap1.salesforce.com/0019000000nITT1 but i want to replace this by
https://ap1.salesforce.com/9696969696 its posssible in salesforce?? Waiting for your response
https://ap1.salesforce.com/9696969696 its posssible in salesforce?? Waiting for your response
Salesforce recognize every reocord with unique id in the URL . These record ids are system generated and you can't replace it with other ids, We can definitely change the URL in controller but different id means different things for salesforce..
If you want to change the URL for security purpose then you can use the URL encoding but changing the standard ids are not possible as per my knowledge because these ids are universal and same for every user.
Thanks
Rishav
Thanx
Pritam Shekhawat
Check the below link.
http://www.sfdcpoint.com/salesforce/get-current-record-id-salesforce/
Use Mobile Number in place of id and query the record on the basis of mobile number.
if you are trying to perform search on the basis of URL then definitely you can do it.
If the requirement is something else then please tell.
i want to hit url /ap1.salesforce.com/9828113637 and it would open contact detail page.here this mobile number is unique field in contact object.In Java this can be done using Filters. I don't know whether its possible here. Using filter i can parse this url and get this phone number and then search this phone number in database and fetch contact details to show.
thanx
See in salesforce there is a unique id for every object,field,file,and record. This field is read only fields and even it is not visible anywhere except these URL. So programmatically you can't change the standard URL. As per my knowledge there is no any URL mapping feature in salesforce. Can you tell what is your exact requirement to do this means scenario. Or you can do one more thing if you have salesforce license then you can call the salsforce support and ask them.
http://kandhakatla.blogspot.in/2012/02/normal-0-false-false-false-en-us-x-none.html
using force.com sites its possible check this link http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_site_urlRewriter.htm. but i dont want to use this. this is my requirement i dont want site.com for urlRewriter
I am agree with you that url rewriting is possible with Force.com sites. But in your question you had mentioned the standard saledforce.