How to do it...

To create the Form Adapter project, follow these steps:

  1. Select Dynamics 365 for Operations | Create model from the top menu and complete the Create model form as follows:

Field

Value

Model name

ConWHSVehicleManagementFormAdaptor

Model publisher

Contoso IT

Layer

VAR

Model description

Form adapters for the ConWHSVehicleManagement package

Model display name

ConWHSVehicleManagementFormAdaptor

The suffix is important and should always be FormAdaptor.
  1. Click on Next.
  2. Select Create new package and click on Next.
  3. Select ConWHSVehicleManagement and TestEssentials from the Packages [Models] list and click on Next.
  4. Uncheck the default for creating a project, but leave the default option of making the new model the default for new projects. Click on OK.
  5. Right-click on the solution node in the Solution Explorer and choose Add | New project....
  6. In the New Project window, ensure that the Dynamics 365 for Operations template is selected in the left pane, and Operations Project is selected in the right. Enter ConWHSVehicleManagementFormAdaptor as Name and click on OK.
  7. Save all and close Visual Studio.
  8. If the package was called ConWHSVehicleManagementFormAdapter, navigate to the following folder in Windows Explorer:
C:AOSServicePackagesLocalDirectoryConWHSVehicleManagementFormAdapterDescriptor 
  1. Open the ConWHSVehicleManagementFormAdapter.xml file in Notepad and add the highlighted line in order to tell the model which model is the source to build form adapters:
<AppliedUpdatesxmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" /> 
<Customization>Allow</Customization>
<Description>Form adapters for the ConWHSVehicleManament package</Description>
<DisplayName>ConWHSVehicleManagementFormAdapter</DisplayName>
<FormAdaptorSourceModel>ConWHSVehicleManagement</FormAdaptorSourceModel>
<Id>895571399</Id>
Do not edit any other part of this file. The option to set the form adaptor source model directly in Visual Studio may be added to later versions, so this step might not be required in the future.
  1. Open Visual Studio and the ConWHSVehicleManagement solution, then right-click on the ConWHSVehicleManagementFormAdaptor project, and choose Properties.
  2. Change the Generate Form Adapters property to True.
  3. Right-click on the ConWHSVehicleManagementForm project and choose Properties and change the Generate Form Adapters property to True.
  4. Select Build models... from the Dynamics 365 menu and build both models.
  5. This should generate and add a class for each form, suffixed with FormAdaptor. If they don't appear, you can locate them in the Application Explorer and add them manually.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.124.143