다음을 통해 공유


How to: Update a Service After Adding a Query Data Source

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

In Microsoft Dynamics AX, if you add a data source to a query that is the foundation for a document service, you must update the service to reflect these changes. For more information about the document services classes, see Document Services Classes. This process creates an Ax <Table> class (also called an AxBC class) for the new data source and updates the data object classes.

Update the service

  1. After you have added the query data source, open the Update document service form. In a Development Workspace, click Tools > Application Integration Framework > Update document service.

  2. In the Service class name field, select the service class.

  3. In the Supporting classes area, select the Regenerate data object classes box.

  4. Select the Update AxBC classes box.

  5. Click OK.

After you complete these steps, the table, the Ax <Table> class, and the data object classes will be synchronized. Next, you must refresh the services.

Refresh the services

  1. In a Development Workspace, expand the Forms node in the AOT.

  2. Right-click AifService, click Open, and then click Refresh.

Note

You can also refresh the services from the Inbound ports form. Click System administration > Setup > Services and Application Integration Framework > Inbound ports, click File, and then click Refresh.