Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6337529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:16:09+00:00 2026-05-24T19:16:09+00:00

1) I have created a custom object Hello . Added two lookup fields to

  • 0

1) I have created a custom object “Hello“.
Added two lookup fields to it, one is associated to Accounts and another to Leads.

2) now my custom object appears as a related list in both Account and lead

3) if i goto an account say "**Test_account**"  >> i click on the new button 
   on the "Hello" related list.here i have redirected to a custom 
   visualforce page "**Welcome**".

Now I want that on my “Welcome Page” I want to display 2 fields.

If user reached this “Welcome Page” via hello related list in accounts then label on this page is set to Accounts

but

If user reached this “Welcome Page” via hello related list in leads then label on this page is set to Leads.

I dont know how to do this.
I can get the retURL in the currentpage URL but it gives me only the id.
Now I am not sure this id belongs to Accounts or Leads.

Accounts nad leads are just examples,there could be many more ojects.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:16:10+00:00Added an answer on May 24, 2026 at 7:16 pm

    By looking at the first three characters of the id, you can tell the type of object. For example, all Accounts start with ‘001’ and all Leads start with ’00Q’. You can get all the key prefixes from the DescribeSObjectResult in either Apex or the Web Services API. The API also returns this in the DescribeGlobalResult, which is handy if you want to load all the key prefixes in one call. The REST API also has the key prefix, but you’d have to traverse all the objects to get to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a custom object, I have it appearing automatically on the Account details
If have created a custom role within SqlServer which I added to the db__denydatareader
I have created a CalendarViewerPortlet custom object JS object. In this object, I am
I need to clone an object I have created (a custom class). Cloning it
I have created a custom User profile template and object in the core database
I've created custom object and custom tab (label text=order). Now my header looks like
I have created custom MembershipUser, MembershipProvider and RolePrivoder classes. These all work and I
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a custom TitleWindow whcih i use as a popup. The contents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.