I am new to dynamics so please forgive if this is a very simple question.
I would like to query a relationship between two entities to get a value from an entity that is not the value that it is joined on. For example, if I added a field to the Account entity like "Company history" could I then get that value to populate a field in the Contact entity using the relationship that already exists between Account and Contact.
Ideally this should be done with a plugin or workflow. I would appreciate the example in c# with strongly typed entities.
I realise there might be a better way of populate the field but this is just a proof of concept as my customer's end goal is to have XML that will include the values of fields from relationships without the end user being able to see the values on the form, so in the example above, when a Contact was updated a XML file would be created that included the "Company history" field from the Account entity.