You need to sign in to do that
Don't have an account?

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;
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.
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
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.