• Richard Estigoy
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi. Can you please guide me and help me regarding on the fetching of ID from the URL?

Here is the sample link: https://test.dev.cs7.my.salesforce.com/a0cM00000043ST4

I want to get the ID from the URL using my controller for me to be able to use the ID for Query purposes.

 public List<MyCustomObject> getacts(){          
        List<MyCustomObject> acts = [SELECT Id, a,
                b,
                c
          FROM MyTable where Id ='a0cM00000043ST4'];
        return acts;        
    }    

Can you help me please. Thank you.
Hi. Can you please guide me and help me regarding on the fetching of ID from the URL?

Here is the sample link: https://test.dev.cs7.my.salesforce.com/a0cM00000043ST4

I want to get the ID from the URL using my controller for me to be able to use the ID for Query purposes.

 public List<MyCustomObject> getacts(){          
        List<MyCustomObject> acts = [SELECT Id, a,
                b,
                c
          FROM MyTable where Id ='a0cM00000043ST4'];
        return acts;        
    }    

Can you help me please. Thank you.