Skip to main content

Auto Loading and Saving Dynamics 365 Items

If you have a Collection or relationship that you do not want to populate automatically, you can disable "Auto Load" for the Field. This will add the "CRMAutoLoadRelationship" attribute to the Field. When loading data from Microsoft Dynamics 365, your runtime assembly can access that attribute and skip the Field. Auto Load can be toggled on or off by clicking the button in the DYNAMICS ribbon or through the context menu.

Similarly, if you have a Collection or relationship that you do not want to be saved back to Microsoft Dynamics 365, you can disable "Auto Save" for the Field. This will add the "CRMAutoSaveRelationship" attribute to the Field. When saving data to Microsoft Dynamics 365, your runtime assembly can access that attribute and skip the Field. Auto Save can be toggled on or off by clicking the button in the DYNAMICS ribbon or through the context menu.

Since Microsoft Dynamics 365 uses the "inactive" status to do a soft delete of records, it is possible to include both active and inactive records when loading a Collection or relationship. You can use the "Exclude Inactive" button to exclude inactive records, giving only active records.

irAuthor DYNAMICS ribbon tab with the Auto Load, Auto Save, and Exclude Inactive buttons highlighted

The Auto Load, Auto Save, and Exclude Inactive buttons are disabled for Fields that are not relationships.