0% found this document useful (0 votes)
12 views

Data Structure Development

Uploaded by

sag492505
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Data Structure Development

Uploaded by

sag492505
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Dynamics 365 for Finance & Operations: Data

Structure Development

Contents
Dynamics 365 for Finance & Operations: Data Structure Development ......................................... 1
Lab Environment:............................................................................................................................. 2
Lab Overview: .................................................................................................................................. 2
Exercise: Add new Data Models ...................................................................................................... 3
Task 1: Base Enum: Customer Tier ........................................................................................ 3
Task 2: EDT: Airport Code ...................................................................................................... 3
Task 3: EDT: Flying Miles ........................................................................................................ 3
Task 4: Table: Tier Range ....................................................................................................... 3
Task 5: Table: Airport Code ..................................................................................................... 4
Task 6: Table: Customer Fly Details ....................................................................................... 4
Exercise: Extend Data Models ........................................................................................................ 5
Task 1: Table Extension: CustTable........................................................................................ 5

Page 1 of 6 Proprietary and Confidential


Subject to Change
Lab Environment:
You will be provided a Dynamics 365 Finance & Operations instance to use for the duration of
this lab.

Lab Overview:
• Dependency: Lab – 1 should be completed
• Develop Data Models in the newly created project

Estimated time to complete this lab: 20+ minutes

Page 2 of 6 Proprietary and Confidential


Subject to Change
Exercise: Add new Data Models
In this exercise, you will add some data models which will be used in subsequent lab exercises

Task 1: Base Enum: Customer Tier


1. Open DynamicsDevProject in the Solution Explorer
2. Right click on project and click on Add -> New Item
3. Select Base Enum under Dynamics 365 Items -> Data Types
4. Create a new Enum DDTCustomerTier (Label: Customer Tier) and add the following
Enum elements with the same label
a. None
b. Silver
c. Gold

Task 2: EDT: Airport Code


1. Open DynamicsDevProject in the Solution Explorer
2. Right click on project and click on Add -> New Item
3. Select EDT String under Dynamics 365 Items -> Data Types
4. Create a new EDT DDTAirportCode (Label: Airport Code)

Task 3: EDT: Flying Miles


1. Open DynamicsDevProject in the Solution Explorer
2. Right click on project and click on Add -> New Item
3. Select EDT Integer under Dynamics 365 Items -> Data Types
4. Create a new EDT DDTFlyingMiles (Label: Flying Miles)

Task 4: Table: Tier Range


1. Open DynamicsDevProject in the Solution Explorer
2. Right click on project and click on Add -> New Item
3. Select Table under Dynamics 365 Items -> Data Models
4. Create a new table DDTTierRange (Label: Tier wise Mile Range)
5. Add the following fields in the table
a. CustTier
i. Enum Type: DDTCustomerTier
b. FromMiles
i. EDT: DDTFlyingMiles
ii. Label: From Miles
c. ToMiles
i. EDT: DDTFlyingMiles
ii. Label: To Miles
6. Add new index CustTierIdx
a. Field: CustTier
b. Allow Duplicate: No

Page 3 of 6 Proprietary and Confidential


Subject to Change
Task 5: Table: Airport Code
1. Open DynamicsDevProject in the Solution Explorer
2. Right click on project and click on Add -> New Item
3. Select Table under Dynamics 365 Items -> Data Models
4. Create a new table DDTAirport (Label: Airport Code)
5. Add the following fields in the table
a. CityRecId
i. EDT: RefRecId
ii. Label: City Code
b. Airport Code
i. EDT: DDTAirportCode
6. Add the following field group in the table
a. DDTAirportCode
i. Label: Airport Code
ii. Field: AirportCode
7. Add the following Index
a. AirportCodeIdx
i. Field: AirportCode
ii. Allow Duplicates (Property): No
iii. Alternate Key (Property): Yes
8. Set the following table properties
a. Primary Key: SurrogateKey
b. Clustered Index: AirportCodeIdx
c. Replacement Key: AirportCodeIdx
9. Create a new Relation: LogisticsAddressCity
a. Related Table: LogisticsAddressCity
b. RelationshipType: Association
c. Cardinality: ZeroOne
d. Related Table Cardinality: ExactlyOne
e. On Delete: Cascade
f. DDTAirport.CityRecId = LogisticsAddressCity.RecId

Task 6: Table: Customer Fly Details


1. Open DynamicsDevProject in the Solution Explorer
2. Right click on project and click on Add -> New Item
3. Select Table under Dynamics 365 Items -> Data Models
4. Create a new table DDTCustFlyDetails (Label: Customer Fly Details)
5. Add the following fields in the table
a. CustAccount
i. EDT: CustAccount
b. FlyCount
i. EDT: Counter
ii. Allow Edit: No
c. FlyingDate
i. EDT: TransDate
ii. Label: Flying Date
iii. Mandatory: Yes
d. FlyFrom
i. EDT: RefRecId
ii. Label: From City
iii. Mandatory: Yes

Page 4 of 6 Proprietary and Confidential


Subject to Change
e. FlyTo
i. EDT: RefRecId
ii. Label: To City
iii. Mandatory: Yes
f. FlyingMiles
i. EDT: DDTFlyingMiles
ii. Mandatory: Yes

6. Create a new index: CounterIdx


a. Fields: CustAccount, FlyCount
b. Allow Duplicates (property): No
c. Alternate Key: Yes
7. Create another index: DDTCustFlyingIdx
a. Fields: CustAccount, FlyingDate
b. Allow Duplicates (property): Yes
8. Create a new Relation: CustTable
a. Related Table: CustTable
b. RelationshipType: Association
c. Cardinality: ZeroMore
d. Related Table Cardinality: ZeroOne
e. On Delete: Restricted
f. DDTCustFlyDetails.CustAccount = CustTable.AccountNum
9. Create a new Relation: AirportFrom
a. Related Table: DDTAirport
b. RelationshipType: Association
c. Cardinality: ZeroMore
d. Related Table Cardinality: ZeroOne
e. On Delete: Restricted
f. DDTCustFlyDetails.FlyFrom = DDTAirport.RecId
10. Create a new Relation: AirportTo
a. Related Table: DDTAirport
b. RelationshipType: Association
c. Cardinality: ZeroMore
d. Related Table Cardinality: ZeroOne
e. On Delete: Restricted
f. DDTCustFlyDetails.FlyTo = DDTAirport.RecId

Exercise: Extend Data Models


In this exercise, you will extend some standard data models which will be used in subsequent lab
exercises

Task 1: Table Extension: CustTable


1. Open DynamicsDevProject in the Solution Explorer
2. In the Application Explorer, search for CustTable table
3. Right click CustTable and click on Create Extension
4. A new element will be created in the Solution Explorer under Table Extensions folder
named CustTable.Extension; which you can rename to CustTable.DDTExtension
5. Add new field DDTCustomerTier in CustTable.DDTExtension by dragging the EDT
DDTCustomerTier and dropping on the fields node of the extended table
6. Add a new Field group: DDTCustomerTier

Page 5 of 6 Proprietary and Confidential


Subject to Change
a. Label: Tier
b. Add field: DDTCustomerTier

Page 6 of 6 Proprietary and Confidential


Subject to Change

You might also like