locked
N:1 relatioship issue RRS feed

  • Question

  • Dear all,

    i am working on ms crm 4.0. I made a N:1 relationship between two entities.

    entity 1 : Custom1 and entity 2 : custom2

    In the custom1 form i am displaying the custom2 as associate view. in the custom1 form i will assign that record to other users. so the owner will change. i am creating a new record from the associate view that is custom2. whenever i am creating the record, it will create with the current login user. But when i am assigning the owner field from custom1 entity, the records(two records that was created in custom2 entity) also changes to the owner of the custom1 entity. i have removed the clientside script and checked but still i am getting error.

    Can anyone tell me where i am going wrong. Please help me. its very very urgent.

    Regards

    Arun

     

     

    Wednesday, March 31, 2010 2:07 PM

Answers

  • hi daneil, i have changed parential to referential, its working fine. buti have one doubt. if the parent record is the owner of user1. if i am creating a new record in custom2 entity, then the owner of the record should be the current login user. am i right?. but for me its showing owner of the parent record. how can i solve this.. 

    Regards Arun

    Hi Arun,

    Are you sure about that? It shouldn't be the case.

    The creator should always be the owner of a new CRM record, no matter what kind of relationship behavior has been defined for the entity, assuming that the CRM entity is a user-owned entity.

    Can you give it a try by creating another new record for custom2 entity?


    Daniel Cai | http://danielcai.blogspot.com
    Wednesday, March 31, 2010 2:57 PM

All replies

  • Open the relationship, and check "Relationship Behavior", look for "Assign", see what has been defined there. Based on my understanding, you are expecting "Cascading None", it must be something else there.
    Daniel Cai | http://danielcai.blogspot.com
    Wednesday, March 31, 2010 2:14 PM
  • Hi Daneil,

    Thank you for quick reply. The Type of Rehaviour is "parential" and the "Assign" is "Casecade all". What is the difference between parential and Referential.

     

    Regards

    Arun

    Wednesday, March 31, 2010 2:21 PM
  • This link might help. The basic difference is "Parential" cascade everything, which means any change to the parent entity record will cascade to child entity records. "Referential" basically cascades nothing. There is one cascading behavior worth mentioning, which is Configurable Cascading, which you can define different cascading behavior for difference action that happen to parent entity record.

    Hope this helps.


    Daniel Cai | http://danielcai.blogspot.com
    Wednesday, March 31, 2010 2:27 PM
  • hi daneil, i have changed parential to referential, its working fine. buti have one doubt. if the parent record is the owner of user1. if i am creating a new record in custom2 entity, then the owner of the record should be the current login user. am i right?. but for me its showing owner of the parent record. how can i solve this..

     

     

     

    Regards Arun

    Wednesday, March 31, 2010 2:42 PM
  • hi daneil, i have changed parential to referential, its working fine. buti have one doubt. if the parent record is the owner of user1. if i am creating a new record in custom2 entity, then the owner of the record should be the current login user. am i right?. but for me its showing owner of the parent record. how can i solve this.. 

    Regards Arun

    Hi Arun,

    Are you sure about that? It shouldn't be the case.

    The creator should always be the owner of a new CRM record, no matter what kind of relationship behavior has been defined for the entity, assuming that the CRM entity is a user-owned entity.

    Can you give it a try by creating another new record for custom2 entity?


    Daniel Cai | http://danielcai.blogspot.com
    Wednesday, March 31, 2010 2:57 PM
  • hi daneil,

    its working fine. thank you very much..

     

    Regards

    Arun

    Wednesday, March 31, 2010 3:05 PM
  • Good to know it worked.

    Cheers


    Daniel Cai | http://danielcai.blogspot.com
    Wednesday, March 31, 2010 3:09 PM