Compartir a través de


ReleaseUpdateDB60_HRM.updateHcmDiscussion Upgrade Script

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

Class

ReleaseUpdateDB60_HRM

Method

updateHcmDiscussion

Description

Inserts records into the HcmDiscussion table from the DEL_HRMInterviewTable table.

Affected Modules and Tables

Affected Modules

Human Resources

Affected Tables

HcmDiscussion

DEL_HRMInterviewTable

DEL_EmplTable

HcmWorker

DEL_HRMInterviewType

Remarks

This upgrade will retain the data of each company by appending the DataAreaId field to the HrmInterviewId field of the DEL_HRMInterviewTable table to create new, unique identifiers for the HcmDiscussion table when multiple companies exist. If only one company exists, the DataAreaId field will not be appended. The Worker field in the HcmDiscussion table is the foreign key to the HcmWorker table and is initialized by finding the worker that corresponds to the EmplId field of the DEL_HRMInterviewTable table. The Goal field in the HcmDiscussion table is the foreign key to the HcmGoal table. The DiscussionType field in the HcmDiscussion table is the foreign key to the HcmDiscussionType table. The data in the HcmDiscussion table is created by this script. The DEL_HRMInterviewTable, DEL_EmplTable, HcmWorker, and DEL_HRMInterviewType tables are read, but not updated, by this script.

Data Migration Section

From Table: HRMInterviewTable

To Table: HcmDiscussion

hrmInterviewId

DiscussionId

description

Description

hrmInterviewTypeId

DiscussionType

interviewDate

DiscussionDate

interviewTime

DiscussionTime

emplId

Worker

status

Status

responsible

ResponsibleWorker

GoalId

Goal

interviewPlace

DiscussionPlace

interviewEndTime

DiscussionEndTime

New Tables or Fields

Table

Field

Extended Data Type

-or- Base Enum

HcmDiscussion

*

Deleted Tables or Fields

Table

Field

HRMInterviewTable

*