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
pupilstuffpupilstuff 

how to change URL for prodcution

Hi ,

 

By mistake I wrote code for devbox which not going to work at the time of deployment

 

Please let me know how to change this code , so It can work out in QA and production

 

url='/500/e?cas5=Incident&ent=Case&nooverride=1&&retURL=%2F500%2Fo&RecordType='+results[0].Id+'&CF00NW0000000Fgdg='+result12[0].Name+'&cas4='+result13[0].Name+'&00NW0000000FsWb='+results[0].name;

_Prasu__Prasu_

It seems you are using hardcoded Id of the records, or layout or recordtype in the URL. Record Id's will be different in the Production. So you will need to replace them with Production Id for them and it should work.

Kunal01Kunal01

Hi.

 

Replace the IDS in red from the Production id and it will work fine.

 

url='/500/e?cas5=Incident&ent=Case&nooverride=1&&r

etURL=%2F500%2Fo&RecordType='+results[0].Id+'&CF00NW0000000Fgdg='+result12[0].Name+'&cas4='+result13[0].Name+'&00NW0000000FsWb='+results[0].name;

 

 

 

Thanks,

KR

 

Ronak PatelRonak Patel

You Can use URl Rewriter class.

By using you can make UserFRiendly URL.

 

See this Link,This will surely helpfull for me.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_site_urlRewriter.htm

 

If you have any problem then ask me.

 

and Take this answer as a Solution.