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
V MANJUV MANJU 

How to populate the url Id name in another Page url, see below screens.

This is My First PageSecond page

Normal Related list Link: https://manjudomain-dev-ed.my.salesforce.com/a0d/e?CF00N9000000Cxf5u=Project+management&CF00N9000000Cxf5u_lkid=a0c90000006nOxQ&retURL=%2Fa0c90000006nOxQ
I need custom Like that.

    public PageReference redirectUser(){
    list<Project__c> lst =[select id, Name from Project__c WHERE id= :ApexPages.currentPage().getParameters().get('id')];
    System.debug('@@@lst@@@'+lst);

    PageReference ref = new PageReference('/a0d/e?CF00N9000000Cxf5u={lst.Name}&CF00N9000000Cxf5u_lkid={id}&retURL=%2F{id}');
    return ref;
}

Thanks:
Jerome LusinchiJerome Lusinchi
Hi,

try this out
PageReference ref = new PageReference('/a0d/e?CF00N9000000Cxf5u='+lst[0].Name+'&CF00N9000000Cxf5u_lkid='+id+'&retURL=%2F'+id);

Jerome