I am having issue mapping Custom entity with Phonecall entity

Posted on 2009-04-23
Last Modified: 2013-11-24
I have a custom entity named "ADS" in CRM 4.0 environment. I have created a custom button in phone call and once clicked it directs to ".aspx" page, I am able to receive the phonecall id from phonecall from aspx page. but when i redirect to "ADS" form (http://CRMSERVER:5555/CRMTest/userdefined/edit.aspx?_CreateFromType=2&_CreateFromId=" + p + "&etc=10001# - this url redirects to ADS create form, where the user enters the detail)  from the .aspx file. I lose the details of phone call id. There is a ADS lookup in phonecall created by N:1 relatiohnship with ADS and phonecall. I need to map this back to the new ADS that is being created, which means the ADS lookup in phone call (new call) should be mapped with the new ADS created, once the ADS form is saved.

I would like to know how can I map the new ADS (lookup in phonecall - thats being created newly)  to the phonecall . Please let me know asap
Question by:Aftab_Khateeb
    LVL 9

    Expert Comment


    I'm not quite sure what you're trying to achieve here.

    Can you explain exactly what you want to happen without how you've tried to do it please.

    LVL 8

    Author Comment

    Sorry about that....
    I need to map custom  entity named "ADS" with phone call. The users should access custom entity from the phone call (as a custom menu button). when clicked on the custom button, a new ADS CRM form will open and the user will  in the details and save the record. Once saved, the new "ADS" should automatically appear in a lookup in Phone call (to indicate that phone call is mapped to that custom entity).

    I also need contact (entity) to be seen as a lookup in "ADS" form,  as the related phonecall is generated as an activity for a contact.

    LVL 11

    Accepted Solution

    1. Click on lookup button
    2. You will get a new button
    3. Click on new button
    4. On clicking new button  you will get ad screen fill in the information close it
    5. Click ok on lookup form
    6. You will get the  lookup filled  up

     You can not fill the contact lookup in the ad screen.  Just try this javascripton load of ad screen
    obj = window.opener

    if(obj != null
    obj = window.opener.window.opener
      if(obj != null)


    If this  works out then  you can fill the values.

    Rakesh Agarwal

    LVL 9

    Expert Comment


    All of the functionality is available out of the box by creating a relationship to the Phonecall entity and then following the steps described by Rakesh above.  From what you described it sounds as though you want to have a custom button configured by the ISV.config and go straight to the create form of the ADS this correct?

    LVL 9

    Assisted Solution

    Hi Again,

    What you could do is create the relationship which would give you the functionality you require.  You could also add a button using ISV.config that automatically took you to a new ADS create form therefore minimising a couple of button clicks.  So, effectively you could do both.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Read about achieving the basic levels of HRIS security in the workplace.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now