Tech Support > Microsoft Windows > Windows CRM > Mappings - Several relationships between Account and a new entity
Mappings - Several relationships between Account and a new entity
Posted by Rute on May 19th, 2008


Hi,

I've created a new entity called Contracts and created 3 relationships with
the account entity (Primary: Account, Related: Contract), because a contract
can have 3 parties and i would like to have 3 fields in the contract form to
identify the accounts that are parties of that contract. When a create a
contract from an account form the system fullfills the name of the account in
the three fields because of the mapping default of the relationship.

I would like the second and third fields of the account in the contract from
to not be fullfilled automatically, do you have any ideia how could i do this?

Thanks
Rute

Posted by LeonTribe on May 19th, 2008


On May 20, 1:56*am, Rute <R...@discussions.microsoft.com> wrote:
You might be better off populating via workflow as you'll get more
control of the behaviour. The downside is it is asynchonous and the
user probably will not see the population at the point of creation.

Leon Tribe

Posted by Michael Höhne on May 19th, 2008


Hi Rute,

You may be able to remove the field mappings in CRM customization. Open the
relationships and click on "Field Mappings", then remove the unwanted data
binding.

Another option is using the following script in the OnLoad event of your
contract entity:

if (crmForm.ObjectId == null) {
//this is a new record

crmForm.all.new_accountid2.DataValue = null;
crmForm.all.new_accountid3.DataValue = null;
}

--
Michael Höhne, Microsoft Dynamics CRM MVP

CRM Blog: http://www.stunnware.com/?area=blog

----------------------------------------------------------

"Rute" <Rute@discussions.microsoft.com> schrieb im Newsbeitrag
news:48F77BB8-D2FE-4AD4-B628-8C7365F7A8E3@microsoft.com...



Similar Posts