Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 924
  • Last Modified:

Microsoft CRM 4.0 - Populating Fields from Related Entities

I have created a date/time field on my Account form that I want to populate with the date/time field from another related entity.  

I can populate the field manually on account or by using a simple onload script (that adds the current date) but want to pull the date from a custom entity when I open the Account form.

I created a 1:N relationship from the custom entity that should supply the date to Account and mapped the date to the field on Account.

When I open the Account form or create a new Account, the date field on Account does not populate.

I have gotten this to work in the past but believe that I used either javascript or xml in the onload event to get it to work.

Please point me in the right direction.

  • 2
1 Solution
Chinmay PatelEnterprise ArchitectCommented:
Hi apollo7,

Same as the previous post,

1. Download : http://www.avanadeblog.com/files/avanadecrmservice.zip
2. Check : http://www.avanadeblog.com/xrm/2010/05/a-microsoft-dynamics-crm-javascript-sdk-in-celebration-of-an-amazing-year-.html

You will have to load the CrmService.js on load of account and then query your fiscal entity to get the date.

apollo7Author Commented:
Thanks - will check these out and get back to you.
apollo7Author Commented:
Got this to work, thanks

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now