initialize pdsBatchAttributeValue

This is a bit of standard code:

attribValue.initValue();
attribValue.ItemId = itemId;
attribValue.InventBatchId = _inventBatchId;
attribValue.PdsBatchAttribId = // attribByItem.PdsBatchAttribRelation;
attribValue.PdsBatchAttribValue = //baseValue;
attribValue.insert();

Advertisements

How to get public entity name for data entity

like this:

CustCustomerEntity    CustCustomerEntity;

Microsoft.Dynamics.AX.Metadata.MetaModel.AxDataEntityView axDataEntity = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetDataEntityView(tableId2Name(CustCustomerEntity.TableId);
info(axDataEntity.PublicEntityName);

general journal entry custtrans

this select can  help to connect GeneralJournalEntry to CustTrans.

select DocumentDate from generalJournalEntry
exists join generalJournalAccountEntry
    where generalJournalAccountEntry.GeneralJournalEntry == generalJournalEntry.RecId
exists join subledgerJournalAccountEntry
    where subledgerJournalAccountEntry.GeneralJournalAccountEntry == generalJournalAccountEntry.RecId 
exists join subledgerJournalEntry
    where subledgerJournalEntry.RecId == subledgerJournalAccountEntry.SubledgerJournalEntry
       && subledgerJournalEntry.Voucher == currentTrans.Voucher
       && subledgerJournalEntry.VoucherDataAreaId == currentTrans.dataAreaId;

Preparation for MB6-894: Development, Extensions and Deployment for Microsoft Dynamics 365 for Finance and Operations. Understand the architecture and development environment. Part 3

  • Describe the Microsoft Dynamics 365 for Finance and Operations architecture
    • Describe the development environment; describe the components in the application stack; identify cloud architecture components; explain the server architecture; describe the layer architecture

Quote from https://www.microsoft.com/en-us/learning/exam-mb6-894.aspx

Identify cloud architecture components

there are 3 main areas

  • Life cycle service – shared services that include but are not limited to
    • project traacking
    • issue submission
    • issue tracking
    • environment monitoring
    • service level agreement monitoring
    • data managment
    • software deployemnt
  • D365 for Finance and Operations
    • VM instances for D365
      • different topologies
  • Shared services – enable one Microsoft solution, where everything can be managed with single login

 

Preparation for MB6-894: Development, Extensions and Deployment for Microsoft Dynamics 365 for Finance and Operations. Understand the architecture and development environment. Part 2

  • Describe the Microsoft Dynamics 365 for Finance and Operations architecture
    • Describe the development environment; describe the components in the application stack; identify cloud architecture components; explain the server architecture; describe the layer architecture

Quote from https://www.microsoft.com/en-us/learning/exam-mb6-894.aspx

Describe components in the application stack

Application stack is divided in 3 distinct models. Actually there are more models involved, but this is for overview purposes only

  • Application Platform -is the core of application.
    • run time and data access framework
    • workflow framework
    • client and presentation framework
    • SSRS framework
  • Application Foundation build upon platform adding things like
    • Organization model
    • Number Sequences
    • Global address book
    • source document framework-
  • Application suite – business logic modules
    • inventory and warehouse managment,
    • HR
    • financial managment

Preparation for MB6-894: Development, Extensions and Deployment for Microsoft Dynamics 365 for Finance and Operations. Understand the architecture and development environment. Part 1

In this series of blog posts we will try to walk through the description of the Exam MB6-894. And look through the skills that are required for it. If you find any mistakes or in need of any explanations please do not hesitate to contact me.

  • Describe the Microsoft Dynamics 365 for Finance and Operations architecture
    • Describe the development environment; describe the components in the application stack; identify cloud architecture components; explain the server architecture; describe the layer architecture

Quote from https://www.microsoft.com/en-us/learning/exam-mb6-894.aspx

Describe the development environment.

Development environment for D365 is Visual Studio. I am using version 15

Settings that might be worth to know:

  1. How to make sure elements in the project will be organized by the type
  2. How to make sure that the project are configured automatically to synchronize on build1_1
  3. The Line numbers are shown
  4. Enable word wrap1_2
  5. Disable IntelliTrace for the debugging

Terminology that can be used in test:

Understand difference between:

  • Elements – is the object that can be found in AOT. Together elements define the system, and what will be shown to the users in front end. Elemnts can be customized and added to projectsdis
  • Models – group of elements that are related by a common originator, purpose, or other grouping
  • Projects
  • Packages

Know different AOT views and how to enable them:

  • Classic View
  • Model View

Understand concepts:

  • design time
  • deployable software package
  • run – time

 

 

Preparation for MB6-894: Development, Extensions and Deployment for Microsoft Dynamics 365 for Finance and Operations. Retail Questions.

Please note this questions were made up, as something that would help learn material for the exam. Answers are colored white and are beneath the question.  If you think there is a mistake , let me know and I ‘ll try to fix it.

  1. Which Retail component controls daily operations and can track sales information in chain of the stores that are treated as one enterprise solution)
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit
    • Answer: retail headquarters
  2. How many POS types are used in Dynamics 365
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • Answer: 2
  3. What types of POS are used in 365
    •  Classic POS,
    • Cloud POS
    • Modern POS
    • Retail POS
    • Classic Retail POS
    • Retail Modern POS
    • Answer: Cloud POS, Retail Modern POS (MPOS)
  4. What provides ODATA web API that let to access information and perform task by using RetailPOS clients and the online store?
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit
    • Answer: Retail server
  5. What provides services that enable Retail PO clients and stuff like printers, cash drawers, payment devices communicate with Retail Server
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit
    • Answer: Hardware station
  6. What is a set of features that supports selling products in store that does not have constant internet connectivity to back office or HQ. And enables cross terminal transactions and shift operations even when you are not connected to the back office.
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit
    • Answer: Retail Store Scale Unit (RSSU)
  7. What serves as the core engine that supports the business logic across the various channels and contains a data access layer service layer workflow layer and an application programming interface ( API ) layer
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit
    • Answer: Commerce run time
  8. What stores data of the retail data for channels
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit
    • Answer: Channel database
  9. What let’s you plug in the front-end online store that can take advantage of the main channel services of the platform
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit
    • Answer: E -commerce platform SDK
  10. What contains a sample source code? And template that can be used to customize retail system
    • Retail headquarters
    • Retail POS
    • Retail server
    • Hardware station
    • Retail store scale unit
    • Commerce runtime
    • Channel database
    • E commerce platform SDK
    • Retail SDK
    • Retail Store Scale Unit

Answer: Retail SDK

Filter odata by enum in the URL

So apparently you cannot use simple string filter to filter odata by enum. You have to reference the enum that you are using in the URL.

For example if you want to filter salesLine data entity by SalesLineStatus field with value invoiced, you have to do the following

https://365DFOP.cloudax.dynamics.com/data/SalesOrderLines?$filter=SalesOrderLineStatus eq Microsoft.Dynamics.DataEntities.SalesStatus'Invoiced'

where

Data entity name –  SalesOrderLines

field name – SalesOrderLineStatus

Enum name – SalesStatus

Referenced enum value – Invoiced