function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pritam ShekhawatPritam 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
RishavRishav
Hiii pritam,
                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
Pritam ShekhawatPritam Shekhawat
hii Rishav , yaa i think same . but requirement is that we search record in url with mobile number associated with that record , inplace of record id if i put mobile number of that record then its returns record ?? URL encoding how does it works??
Thanx
Pritam Shekhawat
Anoop yadavAnoop yadav
Hi,

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.
RishavRishav
Hii pritam,
              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.
Pritam ShekhawatPritam Shekhawat
hello Anoop Yadav , this link is not perform which i really want . thanx
Pritam ShekhawatPritam Shekhawat
Hello Rishab ,
             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
RishavRishav
Hii Pritam,
                  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.
 
RishavRishav
check this link once may be you will get something from here
  http://kandhakatla.blogspot.in/2012/02/normal-0-false-false-false-en-us-x-none.html
                         
Pritam ShekhawatPritam Shekhawat
hii  Rishav ,
                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
RishavRishav
Hi pritam,
               I am agree with you that url rewriting is possible with Force.com sites. But in your question you had mentioned the standard saledforce.