tag:blogger.com,1999:blog-67788300253375554292024-03-16T11:53:07.857-07:00Mukesh Hirwani - Dynamics AxMukesh Hirwani - Dynamics AxMukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.comBlogger73125tag:blogger.com,1999:blog-6778830025337555429.post-47539793817911670762018-07-01T15:12:00.003-07:002018-07-01T15:12:56.979-07:00Dynamics 365 Operations | Composite data entity – Sales order import (Only works with XML)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="ember-view" id="ember4648" style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="reader-article-content" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
First thing first, learn basics of composite data entities using below URL:</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
<span style="color: rgba(0, 0, 0, 0.749019607843137); font-family: Source Serif Pro, serif;"><span style="font-size: 20px;">https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/develop-composite-data-entities</span></span></div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
1. Data management work space > Import</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
2. Create new import project > “Sales order import” provide other info like description, project type = Import.</div>
<div class="slate-resizable-image-embed slate-image-embed__resize-full-width" style="background: 0px 0px; border: 0px; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin: 3.2rem 0px; outline: 0px; padding: 0px; position: relative; vertical-align: baseline;">
<img data-li-src="https://media.licdn.com/dms/image/C5112AQH8YzAxIZKIwQ/article-inline_image-shrink_1500_2232/0?e=2130105600&v=beta&t=HmI8OHEtT_R2Xui5WLxc1pNaMvGSGyBDexiAE_lDMik" data-media-urn="urn:li:digitalmediaAsset:C5112AQH8YzAxIZKIwQ" src="https://media.licdn.com/dms/image/C5112AQH8YzAxIZKIwQ/article-inline_image-shrink_1500_2232/0?e=2130105600&v=beta&t=HmI8OHEtT_R2Xui5WLxc1pNaMvGSGyBDexiAE_lDMik" style="background: 0px 0px; border: 0px; box-sizing: inherit; height: auto; margin: 0px; max-width: 100%; outline: 0px; padding: 0px; vertical-align: baseline; width: 744px;" /></div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
3. Create XML file like below:</div>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 1.6rem; line-height: 1.6rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;"><span class="hljs-meta" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #0073b1; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">xml version=<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"1.0"</span> encoding=<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"utf-8"</span><span class="hljs-meta" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #0073b1; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">?></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Document</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SalesOrderHeaderV2Entity</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESORDERNUMBER</span>></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESORDERNUMBER</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">CURRENCYCODE</span>></span>USD<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">CURRENCYCODE</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">INVOICECUSTOMERACCOUNTNUMBER</span>></span>DE-001<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">INVOICECUSTOMERACCOUNTNUMBER</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">ORDERINGCUSTOMERACCOUNTNUMBER</span>></span>DE-001<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">ORDERINGCUSTOMERACCOUNTNUMBER</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SalesOrderLineV2Entity</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">ITEMNUMBER</span>></span>D0001<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">ITEMNUMBER</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">LINEAMOUNT</span>></span>777.000000<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">LINEAMOUNT</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICE</span>></span>18.000000<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICE</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICEQUANTITY</span>></span>2.000000<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICEQUANTITY</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SHIPPINGSITEID</span>></span>6<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SHIPPINGSITEID</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SalesOrderLineV2Entity</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SalesOrderLineV2Entity</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">ITEMNUMBER</span>></span>D0003<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">ITEMNUMBER</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">LINEAMOUNT</span>></span>777.000000<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">LINEAMOUNT</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICE</span>></span>18.000000<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICE</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICEQUANTITY</span>></span>2.000000<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SALESPRICEQUANTITY</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SHIPPINGSITEID</span>></span>6<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SHIPPINGSITEID</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SalesOrderLineV2Entity</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">SalesOrderHeaderV2Entity</span>></span>
<span class="hljs-tag" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #469a1f; font-size: 16px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></<span class="hljs-name" style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Document</span>></span>
</span></pre>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
4. In selected entities area, click add file.</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
5. Entity name = Sales order composite v3, Source data format = XML-Attribute.</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
6. Click upload and add > browse the above xml and say ok.</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
7. Dialog appears to Generate mapping click Yes.</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
8. Once entity is added to lines section, scroll to the right click View map and set below map.</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Header:</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
- Sales order number = mark as auto generated.</div>
<div class="slate-resizable-image-embed slate-image-embed__resize-full-width" style="background: 0px 0px; border: 0px; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin: 3.2rem 0px; outline: 0px; padding: 0px; position: relative; vertical-align: baseline;">
<img data-li-src="https://media.licdn.com/dms/image/C5112AQEg6cxYmFTCGw/article-inline_image-shrink_1000_1488/0?e=2130105600&v=beta&t=JCSAgi9A3LazkpP3AkKKLesfzlzmbyTEmz_2kXWXwJs" data-media-urn="urn:li:digitalmediaAsset:C5112AQEg6cxYmFTCGw" src="https://media.licdn.com/dms/image/C5112AQEg6cxYmFTCGw/article-inline_image-shrink_1000_1488/0?e=2130105600&v=beta&t=JCSAgi9A3LazkpP3AkKKLesfzlzmbyTEmz_2kXWXwJs" style="background: 0px 0px; border: 0px; box-sizing: inherit; height: auto; margin: 0px; max-width: 100%; outline: 0px; padding: 0px; vertical-align: baseline; width: 744px;" /></div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Lines:</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
- Inventory lot it = mark as auto generated.</div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
- LineCreationSequenceNumber = mark as auto generated</div>
<div class="slate-resizable-image-embed slate-image-embed__resize-full-width" style="background: 0px 0px; border: 0px; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin: 3.2rem 0px; outline: 0px; padding: 0px; position: relative; vertical-align: baseline;">
<img data-li-src="https://media.licdn.com/dms/image/C5112AQE_L2ivGXs3Vw/article-inline_image-shrink_1500_2232/0?e=2130105600&v=beta&t=FjyupmNIhgQ93RL-L_3ZtOXttamd_ny8ghkqobelFkI" data-media-urn="urn:li:digitalmediaAsset:C5112AQE_L2ivGXs3Vw" src="https://media.licdn.com/dms/image/C5112AQE_L2ivGXs3Vw/article-inline_image-shrink_1500_2232/0?e=2130105600&v=beta&t=FjyupmNIhgQ93RL-L_3ZtOXttamd_ny8ghkqobelFkI" style="background: 0px 0px; border: 0px; box-sizing: inherit; height: auto; margin: 0px; max-width: 100%; outline: 0px; padding: 0px; vertical-align: baseline; width: 744px;" /></div>
<div style="background: 0px 0px; border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
9. Once done Save the configuration and import file.</div>
<div style="color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 16px;">
<br /></div>
</div>
</div>
<div class="reader-flag-content__wrapper mb4 clear-both" data-ember-action-4649="4649" data-ember-action="" style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.9); display: flex; font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 1.5rem; justify-content: flex-end; margin: 0px 0px 16px; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
<span class="fullpost"> </span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com7tag:blogger.com,1999:blog-6778830025337555429.post-26665850143565275552018-07-01T15:11:00.003-07:002018-07-01T15:11:38.919-07:00Dynamics 365 Operations | REST APIs | Package API<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
First thing first, learn basics of Service endpoints available in Dynamics 365 for Operations using below URL:</div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/services-home-page" target="_blank">https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/services-home-page</a></div>
<h2 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 24px; line-height: 32px; margin: 2.8rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Import file to Dynamics 365 Operations</h2>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 2.4rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
1. Get access token</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST https:<span class="hljs-comment" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #9b9ea2; font-style: italic; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">//login.windows.net/[domain]/oauth2/token?api-version=1.0\</span>
Request header:
Content-Type: application/x-www-form-urlencoded
Host: login.windows.net
Content-Length: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">184</span>
Expect: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">100</span>-<span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">continue</span>
Connection: Keep-Alive
Request body:
(url encode <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">for</span> client secret key http:<span class="hljs-comment" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #9b9ea2; font-style: italic; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">//www.albionresearch.com/misc/urlencode.php)</span>
grant_type=client_credentials&resource=[dynamics URI]&client_id=[Client ID registered <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">in</span> Azure]&client_secret=[Secret key generated <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">from</span> Azure]
</pre>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: -3.2rem; outline: 0px; overflow-x: auto; padding: 0px 3.2rem 3.2rem; vertical-align: baseline;"></pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
2. Get Azure Write URL</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST [Dynamics URI]/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetAzureWriteUrl HTTP/1.1
OData-Version: 4.0
OData-MaxVersion: 4.0
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF-8
Authorization: Bearer [access token]
Host: [Dynamics URI without https]
{
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"uniqueFileName"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"[New GUID]"</span>
}
</pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
3. Upload data package to Blob</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">PUT [URI returned from GetAzureWriteURL]
x-ms-date: Wed, 13 Jun 2018 11:08:00 AST
x-ms-version: 2015-02-21
x-ms-blob-type:BlockBlob
Overwrite: T
@<span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">INCLUDE</span> *[folderPath]\[fileName].zip*@
</pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
4. Import from package</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST
[Dynamics URL <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">with</span> https]/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.ImportFromPackage HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF-<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">8</span>
Authorization: Bearer [access token]
Host: [Dynamics URI without https]
{
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"packageUrl"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"[Blob URL returned from GetAzureWriteURL]"</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"definitionGroupId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"XE"</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"executionId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">""</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"execute"</span>:<span class="hljs-literal" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">true</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"overwrite"</span>:<span class="hljs-literal" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">true</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"legalEntityId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"USMF"</span>
}
</pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
5. Get execution summary status</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST
[Dynamics URL <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">with</span> https]/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetExecutionSummaryStatus HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF-<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">8</span>
Authorization: Bearer [access token]
Host: [Dynamics URL without https]
{
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"executionId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"[execution id returned from Import from Package HTTP call]"</span>
}
</pre>
<h2 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 24px; line-height: 32px; margin: 3.2rem 0px 2.8rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Export file from Dynamics 365 Operations</h2>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 2.4rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
1. Export to package</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST [Dynamics URL <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">with</span> https]/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.ExportToPackage HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF-<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">8</span>
Authorization: Bearer [access token]
Host: [Dynamics URL without https]
{
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"definitionGroupId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"GJ Export"</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"packageName"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"General journal"</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"executionId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">""</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"reExecute"</span>:<span class="hljs-literal" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">false</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"legalEntityId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"USMF"</span>
}
</pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
2. Get exported package URL</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST [Dynamics URL <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">with</span> https]
/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetExportedPackageUrl HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF-<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">8</span>
Authorization: Bearer [access token]
Host: [Dynamics URL without https]
{
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"executionId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"ExportPackage-6/14/2018 08:04:43 am[returned from export to package]"</span>
}</pre>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com4tag:blogger.com,1999:blog-6778830025337555429.post-18609477943135988452018-07-01T15:10:00.000-07:002018-07-01T15:10:13.629-07:00Dynamics 365 Operations | Recurring integration - REST | Package API<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
First thing first, learn basics of Recurring integration from below URL:</div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
<a href="https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/data-entities/recurring-integrations" target="_blank">Recurring integrations</a></div>
<h2 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 24px; line-height: 32px; margin: 2.8rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Download data [Dequeue]</h2>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 2.4rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Setup recurring integration export project</h3>
<ol style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin: 0px 0px 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">In the System administration workspace (not the System administration module), select the Data Management IT workspace.</li>
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">In the work space, on the Recurring data job tab, select the recurring job to view the details. The Manage scheduled data jobs page contains a grid that lists any messages that are waiting in the queue. Therefore, you can monitor messages and the processing status.</li>
</ol>
<div class="slate-resizable-image-embed slate-image-embed__resize-full-width" style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin: 3.2rem 0px; outline: 0px; padding: 0px; position: relative; vertical-align: baseline;">
<img data-li-src="https://media.licdn.com/dms/image/C5112AQFcX4iuGcyxOA/article-inline_image-shrink_1000_1488/0?e=2130105600&v=beta&t=-IHS9cqiJ9-LX6IggAfnKbzjpxQ4G_AZDJyBDf-Kp2o" data-media-urn="urn:li:digitalmediaAsset:C5112AQFcX4iuGcyxOA" src="https://media.licdn.com/dms/image/C5112AQFcX4iuGcyxOA/article-inline_image-shrink_1000_1488/0?e=2130105600&v=beta&t=-IHS9cqiJ9-LX6IggAfnKbzjpxQ4G_AZDJyBDf-Kp2o" style="background: 0px 0px; border: 0px; box-sizing: inherit; height: auto; margin: 0px; max-width: 100%; outline: 0px; padding: 0px; vertical-align: baseline; width: 744px;" /></div>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 2.4rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
In code snippets below GUID for recurring integration means:</h3>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Activity ID, on the Manage scheduled data jobs page, ID field [GUID]</div>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 2.4rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Export data</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">GET [Dynamics URI with https]<span class="hljs-regexp" style="background: 0px 0px rgb(255, 223, 246); border: 0px; box-sizing: inherit; color: #890060; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">/api/connector/dequeue/</span>[GUID <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">for</span> recurring integration] HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-8</span>
Authorization: Bearer [access token]
Host: [Dynamics URI without https]
</pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Download data package</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">GET [URI <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">return</span> <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">from</span> dequeue request] HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-8</span>
Authorization: Bearer [access token]
Host: [Dynamics URI without https]
</pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Acknowledge data package download</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST [Dynamics URI with https]
<span class="hljs-regexp" style="background: 0px 0px rgb(255, 223, 246); border: 0px; box-sizing: inherit; color: #890060; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">/api/connector/ack/</span>[GUID <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">for</span> recurring integration] HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Content-Type: application/json;odata.metadata=minimal
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">-8</span>
Authorization: Bearer [access token]
Host: [Dynamics URI without https]
{
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"CorrelationId"</span>: <span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"[return from dequeue]"</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"PopReceipt"</span>: <span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"[return from dequeue]"</span>,
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"DownloadLocation"</span>: <span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"[location from dequeue]"</span>
}
</pre>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: -3.2rem; outline: 0px; overflow-x: auto; padding: 0px 3.2rem 3.2rem; vertical-align: baseline;"></pre>
<h2 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 24px; line-height: 32px; margin: 3.2rem 0px 2.8rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Upload data [Enqueue]</h2>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST [Dynamics URI <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">with</span> https]/api/connector/enqueue/[guid <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">for</span> recurring integration]?entity=General%<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">20</span>journal&company=usmf HTTP/<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">1.1</span>
OData-Version: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
OData-MaxVersion: <span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">4.0</span>
Accept: application/json;odata.metadata=minimal
Accpet-Charset: UTF-<span class="hljs-number" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">8</span>
Authorization: Bearer [access token]
Host: [Dynamics URI without https]
Request <span class="hljs-keyword" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">body</span> {xml data}
</pre>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: -3.2rem; outline: 0px; overflow-x: auto; padding: 0px 3.2rem 3.2rem; vertical-align: baseline;"></pre>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 3.2rem 0px 2.4rem; outline: 0px; padding: 0px; vertical-align: baseline;">
Get message status</h3>
<pre spellcheck="false" style="background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 16px; line-height: 1.6rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; vertical-align: baseline;">POST /data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetMessageStatus
BODY
{
<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"messageId"</span>:<span class="hljs-string" style="background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">"<string>"</string></span>
}</pre>
<span class="fullpost"> </span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com6tag:blogger.com,1999:blog-6778830025337555429.post-14125062676094152142018-07-01T15:08:00.001-07:002018-07-01T15:08:20.932-07:00Dynamics 365 Operations | How to debug & restart AOS with limited administrator privileges<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 24px; line-height: 32px; margin: 2.8rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Environment with limited administrator privileges.</h2>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 2.4rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Debug</h3>
<ol style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin: 0px 0px 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">D365 menu > Options > untick "Load symbols only for items in the solution"</li>
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Setup a startup object.</li>
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Run</li>
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Go back to VS > debug > attach to process > iisexpress > attach.</li>
</ol>
<h3 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 20px; line-height: 28px; margin: 2.4rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Restart AOS\IIS</h3>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin-bottom: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
VS > D365 menu > Restart IIS express.</div>
<h2 style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.9); font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif; font-size: 24px; line-height: 32px; margin: 2.8rem 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
Environment where we do have administrator privileges.</h2>
<ol style="background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: "Source Serif Pro", serif; font-size: 20px; line-height: 3.2rem; margin: 0px 0px 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">D365 menu > Options > untick Load symbols only for items in the solution.</li>
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Setup a startup object.</li>
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Run</li>
<li style="background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;">Go back to VS > debug > attach to process > show processes from all users > w3wp > attach.</li>
</ol>
<span class="fullpost"> </span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com1tag:blogger.com,1999:blog-6778830025337555429.post-42152527077594933072016-02-26T06:45:00.001-08:002016-02-26T06:45:43.854-08:00Exclusive 50% discount on my eBook<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://bit.ly/1QknxmS"><br />
<img alt="" border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjX9a6oSNDR6vh-IX0_vbvmdFrnFR0iv6XoaiY-fgaPYJ-uIsAndM8Cmr2jkAfPZ8Z0Xc4crcm5yC9ZVt9snVpligx2XvNUeDK8Ov6YKOM2yY6JVDFMXoaptek630Pislu3MFQ7bXALOWv/s400/Banner+%2528Dynamics%2529.jpg" title="http://bit.ly/1QknxmS " width="290" /></a></div>
<span class="fullpost"> </span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com3tag:blogger.com,1999:blog-6778830025337555429.post-44435370937478507052015-05-10T23:21:00.000-07:002015-05-10T23:21:24.527-07:00List of duties and privileges under a Role<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Hi,</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Use the below job to get list of duties and privileges under one or more roles.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;"><br /></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;">static</span></b><span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">void</span></b>
getAllDutiesAndPrivilidgesUnderRole(Args _args)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> fileName = <span style="color: darkred;">@"C:\Users\[UserId]\Desktop\allDutiesAndPrivilidgesUnderRole.csv"</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
CommaTextIo
commaTextIo;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
FileIOPermission
permission;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SecurityTaskEntryPoint
taskEntryPoint;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SecurityRole role;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SecurityRoleTaskGrant taskGrant;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SecuritySubTask subTask;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SecurityTask privilege;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SecurityTask
securityTask;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SecurableObject
securableObject;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
DictEnum dictEnum;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> privAOTName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> dutyAOTName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> privName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> dutyName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> entrName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> accessLevel;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> menuItemType;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
FromTime
startTime = <b><span style="color: darkblue;">timeNow</span></b>();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> #File<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> ;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
permission = <b><span style="color: darkblue;">new</span></b>
FileIOPermission(fileName,#io_write);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
permission.assert();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
commaTextIo = <b><span style="color: darkblue;">new</span></b>
CommaTextIo(fileName,#io_write);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//Header</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
commaTextIo.write(<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Role AOT name"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Description"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Duty AOT name"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Description"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Privilidge AOT name"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Description"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Entry point"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Type"</span>,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <span style="color: darkred;">"Access level"</span>);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">while</span></b> <b><span style="color: darkblue;">select</span></b>
taskEntryPoint<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">join</span></b> subTask<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">where</span></b> subTask.SecuritySubTask ==
taskEntryPoint.SecurityTask<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">join</span></b> taskGrant<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">where</span></b> taskGrant.SecurityTask ==
subTask.SecurityTask<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">join</span></b> role<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">where</span></b> role.RecId == taskGrant.SecurityRole<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//&&
role.AotName like 'Sales*'</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//|| role.AotName like 'System*'</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
menuItemType = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dutyAOTName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dutyName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privAOTName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">if</span></b> (subTask.RecId)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">switch</span></b> (taskEntryPoint.PermissionGroup)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">case</span></b> AccessRight::View:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
accessLevel = <span style="color: darkred;">"Read"</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">break</span></b>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">case</span></b> AccessRight::Edit:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
accessLevel = <span style="color: darkred;">"Update"</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">break</span></b>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">case</span></b> AccessRight::Add:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
accessLevel = <span style="color: darkred;">"Create"</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">break</span></b>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">case</span></b> AccessRight::Delete:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
accessLevel = <span style="color: darkred;">"Delete"</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">break</span></b>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">default</span></b>:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
accessLevel = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">break</span></b>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">select</span></b> privilege<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">where</span></b> privilege.RecId ==
taskGrant.SecurityTask<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
&& SecurityTaskType::Duty == privilege.Type;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dutyAOTName = privilege.AotName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dutyName = privilege.Name;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">select</span></b> privilege<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">where</span></b> privilege.RecId ==
subTask.SecuritySubTask<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
&& SecurityTaskType::Privilege == privilege.Type;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privAOTName = privilege.AotName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privName = privilege.Name;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">select</span></b> RecId, Type, Name <b><span style="color: darkblue;">from</span></b> securableObject<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">where</span></b> securableObject.RecId ==
taskEntryPoint.EntryPoint && (securableObject.Type ==
SecurableType::MenuItemDisplay<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
|| securableObject.Type == SecurableType::MenuItemAction ||
securableObject.Type == SecurableType::MenuItemOutput);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dictEnum = <b><span style="color: darkblue;">new</span></b> DictEnum(<b><span style="color: darkblue;">enumNum</span></b>(MenuItemType));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
menuItemType = dictEnum.index2Name(securableObject.Type);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
commaTextIo.write(role.AotName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> role.Name,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> dutyAOTName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> dutyName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> privAOTName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> privName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
securableObject.Name,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> menuItemType,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> accessLevel);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//sometimes a role has a privielge direclty assigned
instead of a duty. So this code is for those privileges.</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//In this case duty will not exist.</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">while</span></b> <b><span style="color: darkblue;">select</span></b>
SecurityTask, SecurityRole <b><span style="color: darkblue;">from</span></b>
taskGrant<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">join</span></b> RecId, Type, AOTName <b><span style="color: darkblue;">from</span></b> securitytask <b><span style="color: darkblue;">where</span></b>
securityTask.RecId == taskGrant.SecurityTask<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
&& taskGrant.SecurityRole == taskGrant.SecurityRole &&
securitytask.Type == SecurityTaskType::Privilege<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">join</span></b> securityTask, EntryPoint <b><span style="color: darkblue;">from</span></b> taskEntryPoint <b><span style="color: darkblue;">where</span></b> taskEntryPoint.SecurityTask ==
securitytask.RecId<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
menuItemType = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dutyAOTName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dutyName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privAOTName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privName = <span style="color: darkred;">""</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">select</span></b> RecId, Type, Name <b><span style="color: darkblue;">from</span></b> securableObject<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">where</span></b> securableObject.RecId
== taskEntryPoint.EntryPoint && (securableObject.Type ==
SecurableType::MenuItemDisplay<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
|| securableObject.Type == SecurableType::MenuItemAction ||
securableObject.Type == SecurableType::MenuItemOutput);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">if</span></b>(securableObject)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">select</span></b> privilege<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<b><span style="color: darkblue;">where</span></b> privilege.RecId ==
securityTask.RecId<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
&& SecurityTaskType::Privilege == privilege.Type;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privAOTName = privilege.AotName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
privName = privilege.Name;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
dictEnum = <b><span style="color: darkblue;">new</span></b> DictEnum(<b><span style="color: darkblue;">enumNum</span></b>(MenuItemType));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
menuItemType = dictEnum.index2Name(securableObject.Type);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> commaTextIo.write(role.AotName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> role.Name,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> dutyAOTName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> dutyName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> privAOTName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> privName,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> securableObject.Name,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> menuItemType,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> accessLevel);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
CodeAccessPermission::revertAssert();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> info(<b><span style="color: darkblue;">strFmt</span></b>(<span style="color: darkred;">"Total
time: %1"</span>, timeConsumed(startTime, <b><span style="color: darkblue;">timeNow</span></b>())));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com6tag:blogger.com,1999:blog-6778830025337555429.post-75489573065862644402015-05-03T04:57:00.000-07:002015-05-03T04:57:41.726-07:00SSRS send report as attachment in email using Batch<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Hi Folks,</span><span class="fullpost" style="font-family: Verdana, sans-serif;">
</span><br />
<div>
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Verdana, sans-serif;">As the standard AX 2012 feature we can schedule any report to send it as attachment on periodic basis. Though standard SysMailerNet class fails if you do not provide any email id in cc. To fix this issue; change the quickSend method of SysMailerNet class as mentioned below:</span></div>
<div>
<br /></div>
<div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;">public</span></b><span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">void</span></b>
quickSend(<b><span style="color: darkblue;">str</span></b> fromAddr, <b><span style="color: darkblue;">str</span></b> toAddr, <b><span style="color: darkblue;">str</span></b>
subject, <b><span style="color: darkblue;">str</span></b> body, <b><span style="color: darkblue;">str</span></b> cc=<span style="color: darkred;">''</span>,
<b><span style="color: darkblue;">str</span></b> attachments=<span style="color: darkred;">''</span>)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SysMailerNetAddressField tos;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SysMailerNetAddressField ccs;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SysMailerNetAttachments mailAttachments;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SysEmailParameters parameters;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> List
emailAddresses;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
ListEnumerator enum;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> ;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
this.fromAddress(fromAddr);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> tos =
this.tos();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
emailAddresses = SysEmailDistributor::splitEmail(toAddr);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> enum =
emailAddresses.getEnumerator();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">while</span></b>(enum.moveNext())<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
tos.add(enum.current());<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
this.subject(subject);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
this.htmlBody(body);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//USR-Start</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> ccs =
this.ccs();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
emailAddresses = SysEmailDistributor::splitEmail(cc);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> enum =
emailAddresses.getEnumerator();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">while</span></b>(enum.moveNext())<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
ccs.add(enum.current());<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">/*if (!prmisDefault(cc))<o:p></o:p></span></i></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<i><span style="color: green; font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></i></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<i><span style="color: green; font-family: Consolas; font-size: 8.0pt;"> ccs = this.ccs();<o:p></o:p></span></i></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<i><span style="color: green; font-family: Consolas; font-size: 8.0pt;"> ccs.add(cc);<o:p></o:p></span></i></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<i><span style="color: green; font-family: Consolas; font-size: 8.0pt;"> }*/</span></i><span style="font-family: Consolas; font-size: 8.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//USR-End</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">if</span></b> (!<b><span style="color: darkblue;">prmisDefault</span></b>(attachments))<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
mailAttachments = this.attachments();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
mailAttachments.add(attachments);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
this.priority(System.Net.Mail.MailPriority::Normal);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
parameters = SysEmailParameters::find();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">if</span></b> (parameters.smtpRelayServerName)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
this.smtpRelayServer(parameters.smtpRelayServerName,parameters.smtpPortNumber,parameters.smtpUserName,SysEmailParameters::password(),parameters.ntlm);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
this.sendMail();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
</div>
</div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com8tag:blogger.com,1999:blog-6778830025337555429.post-88078334884349874702015-05-03T04:36:00.000-07:002015-05-03T04:36:48.080-07:00How to add Printer lookup in AX 2012<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">1. Create a class or add below method to use it globally:</span><span class="fullpost">
</span><br />
<div>
<br /></div>
<div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;">Class</span></b><span style="font-family: Consolas; font-size: 8.0pt;"> printers<b><span style="color: darkblue;"><o:p></o:p></span></b></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;">{<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;">}<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;"><br /></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<i><span style="color: green; font-family: Consolas; font-size: 8.0pt;">//This method loads
all available printers to a Map object</span></i><b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;"> </span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;">static</span></b><span style="font-family: Consolas; font-size: 8.0pt;"> Map printerMap()<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
Microsoft.Dynamics.AX.Framework.Reporting.Shared.PrinterHelper
printerHelper;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
Microsoft.Dynamics.AX.Framework.Reporting.Shared.PrinterInfo
printerInfo;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
System.Collections.ArrayList names;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
System.Collections.IEnumerator enumerator;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> Map printerMap;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> name;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">int</span></b> printerStatus;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> driverName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> portName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">str</span></b> comments;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">int</span></b> jobCountSinceLastReset;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">if</span></b>(!printerMap)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
printerMap = <b><span style="color: darkblue;">new</span></b> Map(Types::String,
Types::Container);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">// BP Deviation documented</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
printerHelper = <b><span style="color: darkblue;">new</span></b>
Microsoft.Dynamics.AX.Framework.Reporting.Shared.PrinterHelper();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> names
= printerHelper.get_PrinterNames();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">if</span></b> (names != <b><span style="color: darkblue;">null</span></b>)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> enumerator = names.GetEnumerator();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">while</span></b> (enumerator.MoveNext())<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
name = enumerator.get_Current();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
printerInfo = printerHelper.GetPrinterInfo(name);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<i><span style="color: green;">// BP Deviation documented</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
printerStatus =
CLRInterop::getAnyTypeForObject(printerInfo.get_PrinterStatus());<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<i><span style="color: green;">// BP Deviation documented</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
driverName =
CLRInterop::getAnyTypeForObject(printerInfo.get_DriverName());<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<i><span style="color: green;">// BP Deviation documented</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
portName =
CLRInterop::getAnyTypeForObject(printerInfo.get_PortName());<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<i><span style="color: green;">// BP Deviation documented</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
comments =
CLRInterop::getAnyTypeForObject(printerInfo.get_Comment());<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
<i><span style="color: green;">// BP Deviation documented</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
jobCountSinceLastReset =
CLRInterop::getAnyTypeForObject(printerInfo.get_JobCountSinceLastReset());<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
printerMap.insert(name, [name, printerStatus, driverName, portName,
comments, jobCountSinceLastReset]);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">return</span></b> printerMap;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">2. Build lookup Method</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: darkblue; font-family: Consolas; font-size: 8.0pt;">public static</span></b><span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">void</span></b>
printerLookup(FormControl _formControl)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
SysTableLookup
sysTableLookup;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
TmpTableFieldLookup
tmpTableFieldLookup;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
Enumerator
en;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> List entitylist = <b><span style="color: darkblue;">new</span></b>
list(types::String);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> Map printerMap;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
MapEnumerator
enumerator;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
PrinterName
printerName;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
printerMap = </span><span style="font-family: Consolas; font-size: 10.6666669845581px;">printerMap</span><span style="font-family: Consolas; font-size: 8.0pt;">();<o:p></o:p></span><i><span style="color: green; font-family: Consolas; font-size: 8.0pt;">//If above method was
created in Global class else call specific</span></i><span style="font-family: Consolas; font-size: 8pt;"> </span><i><span style="color: green; font-family: Consolas; font-size: 8.0pt;">class </span></i></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> enumerator =
printerMap.getEnumerator();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">while</span></b> (enumerator.moveNext())<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
printerName = enumerator.currentValue();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
entitylist.addend(printerName);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> en =
entityList.getEnumerator();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <b><span style="color: darkblue;">while</span></b> (en.moveNext())<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
tmpTableFieldLookup.TableName = en.current();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> tmpTableFieldLookup.insert();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
sysTableLookup = SysTableLookup::newParameters(<b><span style="color: darkblue;">tableNum</span></b>(tmpTableFieldLookup), _formControl);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
sysTableLookup.addLookupfield(<b><span style="color: darkblue;">fieldNum</span></b>(TmpTableFieldLookup,
TableName));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
sysTableLookup.setLabel(<span style="color: darkviolet;">"@SYS62708"</span>);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"> <i><span style="color: green;">//BP Deviation documented</span></i><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
sysTableLookup.parmTmpBuffer(tmpTableFieldLookup);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">
sysTableLookup.performFormLookup();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Consolas; font-size: 8.0pt;"><br /></span></div>
</div>
</div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com2tag:blogger.com,1999:blog-6778830025337555429.post-62937476210281029092015-05-03T04:24:00.001-07:002015-05-03T04:24:31.965-07:00Get all fields name, type and label of any AOT table or view<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<br /></div>
<div>
Below jobs enables to get list of fields, base data type and label for any particular table.</div>
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-NqRsAfAibOI/VUYEYLPFH1I/AAAAAAAADBw/Ydy8Q5eEuBw/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-NqRsAfAibOI/VUYEYLPFH1I/AAAAAAAADBw/Ydy8Q5eEuBw/s1600/1.png" height="196" width="640" /></a></div>
<div>
<br /></div>
</div>
<div>
<br /></div>
<div>
Output:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVa5dwfSN5q6jQTvnHzYPHmfQ9SL5EL-Mmb8_rk-1-iGbI8YxX6ShIi35sud00wx4GN5G1DtMDX76aAxFL08LV8nY03N_maUiHEUNp8zjU_DNjDYGlELwpWuTGwAHAkYCWiSwc3Ndwpv-f/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVa5dwfSN5q6jQTvnHzYPHmfQ9SL5EL-Mmb8_rk-1-iGbI8YxX6ShIi35sud00wx4GN5G1DtMDX76aAxFL08LV8nY03N_maUiHEUNp8zjU_DNjDYGlELwpWuTGwAHAkYCWiSwc3Ndwpv-f/s1600/2.png" height="247" width="400" /></a></div>
<div>
<br /></div>
</div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com2tag:blogger.com,1999:blog-6778830025337555429.post-30392934880010565732014-07-05T06:32:00.000-07:002014-07-05T06:32:44.842-07:00Customer Payment Journal using C#<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="text-align: center;">
<br /></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]-->1.<span style="font-size: 7pt;">
</span><!--[endif]-->Verify WSDL URI for AccountsReceivableServices
under System administration > Setup > Service and Application Integration
Framework > Inbound Ports<o:p></o:p></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx12zkBtTC-C0aEkjS7GosUmhEZtcb6s-QqomypWRuGbvyrLYwc5ojTItyHvIXLeb1yglYOHqliLcaGysUpOGjhFbFWaoxjN8IGPRqj8xkmXBb8c7xlPW50qOrlsB-SWee3U8cUCeOwFvM/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx12zkBtTC-C0aEkjS7GosUmhEZtcb6s-QqomypWRuGbvyrLYwc5ojTItyHvIXLeb1yglYOHqliLcaGysUpOGjhFbFWaoxjN8IGPRqj8xkmXBb8c7xlPW50qOrlsB-SWee3U8cUCeOwFvM/s1600/1.jpg" height="315" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<br /></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]-->2.<span style="font-size: 7pt;">
</span><!--[endif]-->Add service reference in .Net project.<o:p></o:p></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMIARLmfQ5dZRvcPzvmYBX5hiQNtuaBJQ_w5Gy6QPZPTdSCa-aPcjfr3QjOX8QjBhTm2n2CWHldqCBSBNOVCCLNhEcbrlg1CSI82NItoMTaw9C1LL5tMHM8j0yvcHAcXFl0RjW8MM_Q4_o/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMIARLmfQ5dZRvcPzvmYBX5hiQNtuaBJQ_w5Gy6QPZPTdSCa-aPcjfr3QjOX8QjBhTm2n2CWHldqCBSBNOVCCLNhEcbrlg1CSI82NItoMTaw9C1LL5tMHM8j0yvcHAcXFl0RjW8MM_Q4_o/s1600/2.jpg" height="518" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
3.<span style="font-size: 7pt;">
</span><!--[endif]-->Add the below code to create customer payment
journal.<o:p></o:p></div>
<div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">private</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">void</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> button1_Click(</span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">object</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> sender, </span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">EventArgs</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> e)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> //Service declarations <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">CallContext</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> callContext = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">CallContext</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">CustPaymJournalServiceClient</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">
client = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">
AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">CustPaymJournalServiceClient</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdCustPaymJournal</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">
paymJournal = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdCustPaymJournal</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEntity_LedgerJournalTable1</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> header = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEntity_LedgerJournalTable1</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEntity_LedgerJournalTrans1</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEntity_LedgerJournalTrans1</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">();<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> callContext.Company = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"ceu"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> //LedgerJournalTable<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> header.JournalName = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"Pay"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> header.Name = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"AIF test"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> header.JournalType =
AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEnum_LedgerJournalType</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">.CustPayment;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> //LedgerJournalTrans<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.AccountType =
AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEnum_LedgerJournalACType</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">.Cust;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.AccountTypeSpecified = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">true</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.Company = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"ceu"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">var</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> account1 = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdType_MultiTypeAccount</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">() { Account = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"11101"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">, DisplayValue = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"11101"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> };<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.LedgerDimension = account1;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.AmountCurCredit = 22;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.AmountCurCreditSpecified = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">true</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.OffsetCompany = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"ceu"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> trans.PaymMode = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">"cash"</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> header.LedgerJournalTrans = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEntity_LedgerJournalTrans1</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;">[1] { trans };<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> paymJournal.LedgerJournalTable = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">new</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> AccountReceivableServices.</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">AxdEntity_LedgerJournalTable1</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> [1] { header };<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">try</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> client.create(callContext,
paymJournal);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">catch</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> (</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">Exception</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> ex)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: white; font-family: Consolas; font-size: 9.5pt;"> </span><span style="background: white; color: blue; font-family: Consolas; font-size: 9.5pt; mso-highlight: white;">string</span><span style="background: white; font-family: Consolas; font-size: 9.5pt;"> error = ex.Message;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: white; font-family: Consolas; font-size: 9.5pt; line-height: 115%;"> }</span><o:p></o:p></div>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com3tag:blogger.com,1999:blog-6778830025337555429.post-77821982652886631112014-03-20T03:57:00.001-07:002014-03-20T03:57:50.447-07:00Developing SSRS Reports for Dynamics AX<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">300+ copies already sold... Rush now and get one for yourself..!!</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="color: red; font-family: Verdana, sans-serif; font-size: large;">***** DEVELOPING SSRS REPORTS FOR DYNAMICS AX *****</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span>
<span style="font-family: Verdana, sans-serif;"><b>Order your copy from:</b></span><br />
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span>
<span style="font-family: Verdana, sans-serif;">Amazon.com - http://goo.gl/K94qjr</span><br />
<span style="font-family: Verdana, sans-serif;">Amazon.in - http://goo.gl/dMsxnX</span><br />
<span style="font-family: Verdana, sans-serif;">Google Books - http://goo.gl/9z0ZTR</span><br />
<span style="font-family: Verdana, sans-serif;">Packt Publishing - http://goo.gl/79sUjJ </span><br />
<br />
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com2tag:blogger.com,1999:blog-6778830025337555429.post-70557421950884341712014-01-09T21:40:00.000-08:002014-01-09T21:40:17.579-08:00Open Management Reporter from AX 2012 R2<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Microsoft Dynamics AX 2012 R2 gives the ability to open Management Reporter directly from AX with various advantages:</span><div>
<br /></div>
<div>
<ul style="text-align: left;">
<li><span style="font-family: Verdana, sans-serif;">Easier than ever.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Launch Management Reporter direct from Microsoft Dynamics AX 2012 R2.</span></li>
<li><span style="font-family: Verdana, sans-serif;">New Management Reporter menu items available under General ledger & Budgeting reports section.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Users with permission to Design & Generate reports in MR will be able to see menu item inside AX.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Open Report Designer with a click.</span></li>
<li><span style="font-family: Verdana, sans-serif;">Connects to the correct server & company based on the AX active session.</span></li>
</ul>
<div>
<br /></div>
</div>
<div>
<span style="font-family: Verdana, sans-serif;">Install Hot fix 2840107</span><br /><a href="https://mbs2.microsoft.com/Knowledgebase/KBDisplay.aspx?scid=kb;en-us;2840107">https://mbs2.microsoft.com/Knowledgebase/KBDisplay.aspx?scid=kb;en-us;2840107</a></div>
<div>
<br /></div>
</div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com1tag:blogger.com,1999:blog-6778830025337555429.post-18429470977930254502013-08-12T23:30:00.000-07:002013-10-09T09:37:25.050-07:00Book authored by me - Developing SSRS Reports for Dynamics AX<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="fullpost">
</span><br />
<div>
<br /></div>
<div>
<div style="text-align: center;">
<span style="color: orange; font-size: x-large;">Developing SSRS Reports for Dynamics AX</span></div>
<div style="text-align: center;">
<br /></div>
<o:p></o:p><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-iE4blnn5gB_2TvzGVpxEYw59_ggRIUBxhrYQmh5-fOY8uDjnIGd5anakgKZdS25hMCuYiEB-mnFOJy36LiGPOv-Hm3jBEVGM1Ik5F80hMNOmKsCJTGHMlviK98AN_ZR9jnJmCzsChh0g/s1600/7746EN_mockupcover_normal(2).jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-iE4blnn5gB_2TvzGVpxEYw59_ggRIUBxhrYQmh5-fOY8uDjnIGd5anakgKZdS25hMCuYiEB-mnFOJy36LiGPOv-Hm3jBEVGM1Ik5F80hMNOmKsCJTGHMlviK98AN_ZR9jnJmCzsChh0g/s320/7746EN_mockupcover_normal(2).jpg" width="258" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<span style="color: #f7921e; font-family: sans-serif;"><span style="font-size: 27px; line-height: 43.515625px;"><br /></span></span></div>
<br />
<br />
<div class="" style="clear: both; text-align: center;">
<a href="http://www.packtpub.com/developing-ssrs-reports-for-dynamics-ax/book" target="_blank">!! Order Now !!</a></div>
<div class="" style="clear: both;">
Learning everything you always wanted to learn about Microsoft Dynamics AX 2012 Reporting. This book guides you through step-by-step real-world based scenarios using which you could easily learn report development.<br />
<br />
<b>What this book covers:</b><br />
<br />
- Building reports using Query.</div>
<div class="separator" style="clear: both;">
- Building reports using RDP, Data contract, UI Builder, Controller classes.</div>
- Building Auto-design & Precision design reports.<br />
- Building advanced reports using Visual Studio.<br />
<div class="" style="clear: both;">
- Building Tablix, Drill through, Chart reports using Visual Studio.<br />
- Managing AX 2012 reports in AOT.<br />
- How deploy AX 2012 reports using various deployment mechanisms.</div>
<div class="separator" style="clear: both;">
- How to develop reports from external data source.</div>
- Common reporting expressions (String, Date, Format, Global functions)<br />
- Understanding the usage of common classes & methods used while developing reports.<br />
- Reporting best practices (Report table, Classes, Report design, AOT Queries)<br />
<br />
<br />
<div style="text-align: center;">
<a href="http://www.packtpub.com/developing-ssrs-reports-for-dynamics-ax/book" target="_blank">!! Order Now !!</a></div>
<div style="text-align: center;">
<br /></div>
<div>
This book is also available now on:</div>
<div>
<br /></div>
<div style="text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/amazon-com.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/amazon-com.png" /></a><a href="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/amazon-co-uk.png" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: left;"><img border="0" src="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/amazon-co-uk.png" /></a><a href="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/barnes-noble.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/barnes-noble.png" /></a><a href="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/safari_0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/bookretailers/safari_0.png" /></a></div>
</div>
</div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com6tag:blogger.com,1999:blog-6778830025337555429.post-67044891381488380572013-05-03T03:42:00.000-07:002013-05-03T03:42:27.387-07:00Windows 8 | Microsoft Dynamics AX Applications<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span class="fullpost"><align center=""><br /></align></span></div>
<div style="text-align: center;">
<span class="fullpost"><align center=""><br /></align></span></div>
<div style="text-align: center;">
<span class="fullpost">
<align center="">
<iframe align="center" allowfullscreen="" frameborder="0" height="370" src="http://www.youtube.com/embed/UJpCe_7sk0k" width="600"></iframe>
</align>
</span></div>
</div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com1tag:blogger.com,1999:blog-6778830025337555429.post-12263826281184871142013-02-24T23:15:00.001-08:002013-02-24T23:15:55.120-08:00Read/Write data using Excel<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
static void Write2ExcelFile(Args _args)</div>
<div>
{ </div>
<div>
InventTable inventTable;</div>
<div>
SysExcelApplication application; </div>
<div>
SysExcelWorkbooks workbooks;</div>
<div>
SysExcelWorkbook workbook;</div>
<div>
SysExcelWorksheets worksheets;</div>
<div>
SysExcelWorksheet worksheet;</div>
<div>
SysExcelCells cells;</div>
<div>
SysExcelCell cell;</div>
<div>
int row;</div>
<div>
;</div>
<div>
<br /></div>
<div>
application = SysExcelApplication::construct();</div>
<div>
workbooks = application.workbooks();</div>
<div>
workbook = workbooks.add();</div>
<div>
worksheets = workbook.worksheets();</div>
<div>
worksheet = worksheets.itemFromNum(1);</div>
<div>
cells = worksheet.cells();</div>
<div>
cells.range('A:A').numberFormat('@');</div>
<div>
<br /></div>
<div>
cell = cells.item(1,1);</div>
<div>
cell.value("Item");</div>
<div>
cell = cells.item(1,2);</div>
<div>
cell.value("Name");</div>
<div>
row = 1;</div>
<div>
</div>
<div>
while select inventTable</div>
<div>
{</div>
<div>
row++;</div>
<div>
cell = cells.item(row, 1);</div>
<div>
cell.value(inventTable.ItemId);</div>
<div>
cell = cells.item(row, 2);</div>
<div>
cell.value(inventTable.ItemName);</div>
<div>
}</div>
<div>
</div>
<div>
application.visible(true);</div>
<div>
}</div>
<div>
<br /></div>
<div>
<div>
<b>Reading Data from Excel File</b></div>
<div>
<b><br /></b></div>
<div>
static void ReadExcel(Args _args)</div>
<div>
{ </div>
<div>
SysExcelApplication application;</div>
<div>
SysExcelWorkbooks workbooks;</div>
<div>
SysExcelWorkbook workbook;</div>
<div>
SysExcelWorksheets worksheets;</div>
<div>
SysExcelWorksheet worksheet;</div>
<div>
SysExcelCells cells;</div>
<div>
COMVariantType type;</div>
<div>
int row;</div>
<div>
ItemId itemid;</div>
<div>
Name name;</div>
<div>
FileName filename;</div>
<div>
<br /></div>
<div>
;</div>
<div>
<br /></div>
<div>
application = SysExcelApplication::construct();</div>
<div>
workbooks = application.workbooks();</div>
<div>
//specify the file path that you want to read</div>
<div>
filename = "C:\\item.xls";</div>
<div>
try</div>
<div>
{</div>
<div>
workbooks.open(filename);</div>
<div>
}</div>
<div>
catch (Exception::Error)</div>
<div>
{</div>
<div>
throw error("File cannot be opened.");</div>
<div>
}</div>
<div>
<br /></div>
<div>
workbook = workbooks.item(1);</div>
<div>
worksheets = workbook.worksheets();</div>
<div>
worksheet = worksheets.itemFromNum(1);</div>
<div>
cells = worksheet.cells();</div>
<div>
</div>
<div>
do</div>
<div>
{</div>
<div>
row++;</div>
<div>
itemId = cells.item(row, 1).value().bStr();</div>
<div>
name = cells.item(row, 2).value().bStr();</div>
<div>
info(strfmt('%1 - %2', itemId, name));</div>
<div>
type = cells.item(row+1, 1).value().variantType();</div>
<div>
}</div>
<div>
while (type != COMVariantType::VT_EMPTY);</div>
<div>
application.quit();</div>
<div>
}</div>
</div>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com3tag:blogger.com,1999:blog-6778830025337555429.post-12659659872646278322013-02-17T20:01:00.004-08:002013-02-17T20:02:11.997-08:00AIF run manually using job<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i>static void processAIF(Args _args)</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i>{</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> ;</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> // read the messages</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> new AifGateWayReceiveService().run();</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i><br /></i></span>
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> // process the messages in queue</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> new AifInboundProcessingService().run();</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i><br /></i></span>
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> // process messages in queue</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> new AifOutboundProcessingService().run();</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i><br /></i></span>
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> // send messages</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i> new AifGateWaySendService().run();</i></span><br />
<span style="color: #0b5394; font-family: Verdana, sans-serif;"><i>}</i></span><br />
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com3tag:blogger.com,1999:blog-6778830025337555429.post-20722786286281568162013-02-13T02:36:00.000-08:002013-02-13T02:37:18.039-08:00101 Dynamics AX Interview Questions<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<br /></div>
<div>
<div align="center" class="MsoNormal" style="text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<b><u><span style="font-size: 48.0pt; line-height: 115%; mso-bidi-font-size: 12.0pt;">101 Microsoft Dynamics AX Interview Questions<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="font-size: 14.0pt; line-height: 115%; mso-bidi-font-size: 11.0pt;">Mukesh
Hirwani<o:p></o:p></span></b></div>
<div class="MsoNormal">
Follow me @<o:p></o:p></div>
<div class="MsoNormal">
<b>BlogSpot</b>: <a href="http://mukesh-ax.blogspot.in/">http://mukesh-ax.blogspot.in/</a><o:p></o:p></div>
<div class="MsoNormal">
<b>Microsoft Community:</b><span style="font-size: 9.0pt; line-height: 115%; mso-bidi-font-size: 11.0pt;"> </span><a href="http://community.dynamics.com/product/ax/axtechnical/b/mukeshhirwani_dynamicsax/default.aspx">http://community.dynamics.com/product/ax/axtechnical/b/mukeshhirwani_dynamicsax/default.aspx</a><o:p></o:p></div>
</div>
<div>
<br /></div>
<span style="font-family: Verdana, sans-serif;">Download your copy from here:</span><br />
<div>
<a href="https://skydrive.live.com/redir?resid=DED394F0A5DBC52D!250&authkey=!AHZjNaRsY2K8FWg">https://skydrive.live.com/redir?resid=DED394F0A5DBC52D!250&authkey=!AHZjNaRsY2K8FWg</a><span class="fullpost">
</span></div>
</div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com22tag:blogger.com,1999:blog-6778830025337555429.post-88920256082172846772012-09-19T00:45:00.000-07:002012-10-29T23:25:13.514-07:00Update Customer/Vendor dimensions | AX 2012<div dir="ltr" style="text-align: left;" trbidi="on">
Upload using csv which contains columns customer account number and all active dimension, if particular dimension is not applicable for a customer/vendor then it has to be left as blank.<br /><br />Read full post at : <a href="http://dynamicsnavax.blogspot.com.au/2012/07/import-default-dimension-into-table-eg.html">http://dynamicsnavax.blogspot.com.au/2012/07/import-default-dimension-into-table-eg.html</a><br />
<div class="MsoNormal">
<o:p></o:p></div>
<span style="font-size: x-small;"><br /></span>
<br />
<div>
<br />
<pre style="background-color: #f0f0f0; border: 1px dashed rgb(204, 204, 204); font-family: 'Courier New'; font-size: 13px; line-height: 18px; overflow-x: auto; overflow-y: hidden; padding: 0px; word-wrap: normal;"><span class="keyword" style="color: blue;">static</span> <span class="keyword" style="color: blue;">void</span> ImportCustomerDimension(<span class="type" style="color: #2b91af;">Args</span> _args)
{
<span class="type" style="color: #2b91af;">AsciiIO</span> asciiIO;
<span class="type" style="color: #2b91af;">Filename</span> filename;
<span class="type" style="color: #2b91af;">NoYesId</span> skipFirstLine;
<span class="type" style="color: #2b91af;">Container</span> line;
<span class="type" style="color: #2b91af;">Dialog</span> dialog;
<span class="type" style="color: #2b91af;">DialogField</span> dialogFileName, dialogSkipFirstLine;
<span class="type" style="color: #2b91af;">DimensionAttribute</span> dimAttr;
<span class="type" style="color: #2b91af;">DimensionAttributeSetItem</span> dimAttrSetItem;
<span class="type" style="color: #2b91af;">DimensionEnumeration</span> dimensionSetId;
<span class="type" style="color: #2b91af;">Container</span> combinedContainer;
<span class="type" style="color: #2b91af;">CustTable</span> custTable;
<span class="type" style="color: #2b91af;">CustAccount</span> custAccount;
<span class="type" style="color: #2b91af;">Counter</span> counter;
<span class="type" style="color: #2b91af;">DimensionAttributeValue</span> dimAttributeValue;
<span class="comment" style="color: green;">//Dialog</span>
dialog = <span class="keyword" style="color: blue;">new</span> <span class="type" style="color: #2b91af;">Dialog</span>(<span class="string" style="color: #a31515;">"Import Default Dimension"</span>);
dialogFileName = dialog.addField(extendedTypeStr(Filenameopen), <span class="string" style="color: #a31515;">"File name"</span>);
dialogSkipFirstLine = dialog.addField(extendedTypeStr(<span class="type" style="color: #2b91af;">NoYesId</span>), <span class="string" style="color: #a31515;">"Skip first line"</span>);
<span class="keyword" style="color: blue;">if</span> (dialog.run())
{
filename = dialogFileName.<span class="keyword" style="color: blue;">value</span>();
skipFirstLine = dialogSkipFirstLine.<span class="keyword" style="color: blue;">value</span>();
}
asciiIO = <span class="keyword" style="color: blue;">new</span> <span class="type" style="color: #2b91af;">AsciiIO</span>(filename, <span class="string" style="color: #a31515;">'R'</span>);
<span class="keyword" style="color: blue;">if</span> (!asciiIO || asciiIO.status() != IO_Status::Ok )
{
<span class="keyword" style="color: blue;">throw</span> error (strfmt(<span class="string" style="color: #a31515;">"@SYS19312"</span>,filename));
}
asciiIO.inRecordDelimiter(<span class="string" style="color: #a31515;">'\r\n'</span>);
asciiIO.inFieldDelimiter(<span class="string" style="color: #a31515;">','</span>);
<span class="keyword" style="color: blue;">if</span> (skipFirstLine)
line = asciiIO.read();
<span class="keyword" style="color: blue;">while</span> (asciiIO.status() == IO_status::Ok)
{
line = asciiIO.read();
<span class="keyword" style="color: blue;">if</span> (line)
{
<span class="comment" style="color: green;">//get customer account number</span>
custAccount = conpeek(line,1);
counter = 1; <span class="comment" style="color: green;">//Dimension starting point</span>
combinedContainer = conNull();
dimAttributeValue = <span class="keyword" style="color: blue;">null</span>;
<span class="comment" style="color: green;">//Build dimension container</span>
dimensionSetId = DimensionCache::getDimensionAttributeSetForLedger();
<span class="keyword" style="color: blue;">while</span> select dimAttr
<span class="type" style="color: #2b91af;">order</span> by Name
<span class="keyword" style="color: blue;">where</span> dimAttr.Type != DimensionAttributeType::<span class="type" style="color: #2b91af;">MainAccount</span>
join RecId from dimAttrSetItem
<span class="keyword" style="color: blue;">where</span> dimAttrSetItem.DimensionAttribute == dimAttr.RecId &&
dimAttrSetItem.DimensionAttributeSet == dimensionSetId
{
counter++;
<span class="comment" style="color: green;">//only insert into container if it has a value</span>
<span class="keyword" style="color: blue;">if</span> (conPeek(line, counter))
{
combinedContainer += [dimAttr.Name, conPeek(line, counter)];
<span class="comment" style="color: green;">//info(strFmt("%1 %2",dimAttr.Name, conPeek(line, counter)));</span>
dimAttributeValue = AxdDimensionUtil::validateFinancialDimensionValue(dimAttr, conPeek(line, counter));
}
}
<span class="comment" style="color: green;">//insert the count in the first value of the container - number of dimensions divided by 2 - since we have name and value</span>
combinedContainer = conIns(combinedContainer, 1, int2str(conLen(combinedContainer)/2));
ttsBegin;
custTable = <span class="type" style="color: #2b91af;">CustTable</span>::find(custAccount, <span class="keyword" style="color: blue;">true</span>);
custTable.DefaultDimension = AxdDimensionUtil::getDimensionAttributeValueSetId(combinedContainer);
custTable.update();
ttsCommit;
}
}
}</pre>
</div>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com1tag:blogger.com,1999:blog-6778830025337555429.post-18735519851260025522012-09-19T00:40:00.000-07:002012-09-19T03:59:14.310-07:00Delete transactional data | AX 2012<div dir="ltr" style="text-align: left;" trbidi="on">
<i><span style="color: #0b5394;"><br /><br />void handleTable(SysDictTable sysDictTable)</span></i><br />
<i><span style="color: #0b5394;">{</span></i><br />
<i><span style="color: #0b5394;"> TableGroup tableGroup;</span></i><br />
<br />
<i><span style="color: #0b5394;"> if (tableSet.in(sysDictTable.id()))</span></i><br />
<i><span style="color: #0b5394;"> return;</span></i><br />
<i><span style="color: #0b5394;"> tableSet.add(sysDictTable.id());</span></i><br />
<br />
<i><span style="color: #0b5394;"> if (sysDictTable && !sysDictTable.isTmp() && !sysDictTable.isMap())</span></i><br />
<i><span style="color: #0b5394;"> {</span></i><br />
<i><span style="color: #0b5394;"> tableGroup = sysDictTable.tableGroup();</span></i><br />
<br />
<i><span style="color: #0b5394;"> // Handle company specific tables to be deleted</span></i><br />
<i><span style="color: #0b5394;"> if (sysDictTable.dataPrCompany())</span></i><br />
<i><span style="color: #0b5394;"> {</span></i><br />
<i><span style="color: #0b5394;"> switch(tableGroup)</span></i><br />
<i><span style="color: #0b5394;"> {</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::Transaction:</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::WorksheetHeader:</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::WorksheetLine:</span></i><br />
<i><span style="color: #0b5394;"> //FIX - Support new AX2012 transaction table types</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::TransactionHeader:</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::TransactionLine:</span></i><br />
<i><span style="color: #0b5394;"> this.handleTransTable(sysDictTable);</span></i><br />
<i><span style="color: #0b5394;"> break;</span></i><br />
<i><span style="color: #0b5394;"> default:</span></i><br />
<i><span style="color: #0b5394;"> this.handleNonTransTable(sysDictTable);</span></i><br />
<i><span style="color: #0b5394;"> break;</span></i><br />
<i><span style="color: #0b5394;"> }</span></i><br />
<i><span style="color: #0b5394;"> }</span></i><br />
<i><span style="color: #0b5394;"> else</span></i><br />
<i><span style="color: #0b5394;"> {</span></i><br />
<i><span style="color: #0b5394;"> // Handle global tables to be deleted</span></i><br />
<i><span style="color: #0b5394;"> switch(tableGroup)</span></i><br />
<i><span style="color: #0b5394;"> {</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::Transaction:</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::WorksheetHeader:</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::WorksheetLine:</span></i><br />
<i><span style="color: #0b5394;"> //FIX - Support new AX2012 transaction table types</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::TransactionHeader:</span></i><br />
<i><span style="color: #0b5394;"> case TableGroup::TransactionLine:</span></i><br />
<i><span style="color: #0b5394;"> this.handleGlobalTransTable(sysDictTable);</span></i><br />
<i><span style="color: #0b5394;"> break;</span></i><br />
<i><span style="color: #0b5394;"> default:</span></i><br />
<i><span style="color: #0b5394;"> break;</span></i><br />
<i><span style="color: #0b5394;"> }</span></i><br />
<i><span style="color: #0b5394;"> }</span></i><br />
<i><span style="color: #0b5394;"> }</span></i><br />
<i><span style="color: #0b5394;">}</span></i><br />
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com0tag:blogger.com,1999:blog-6778830025337555429.post-74058816295008272552012-09-19T00:32:00.000-07:002012-09-19T00:32:03.723-07:00Dynamics Ax - Update using AIF | Get Document Hash<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="background-color: white; font-family: Verdana, sans-serif; line-height: 18px;"><span style="color: #351c75; font-size: large;"><b>Generate <_DocumentHash> while updating data thru AIF</b></span></span></div>
<span style="background-color: white; line-height: 18px;"><br /><br /><span style="font-family: Verdana, sans-serif; font-size: x-small;">In Dynamics Ax, version 2009 onwards Document hash is mandatory to update the records using AIF.</span></span><span style="background-color: white; line-height: 18px;"><span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></span><div xmlns="http://www.w3.org/1999/xhtml">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">When you read data, AIF returns a document hash field. This field contains a hash of all the <span class="code" style="color: #000066;">RecId</span> and <span class="code" style="color: #000066;">RecVersion</span> values for each record that is returned. When you send the data back into AIF to update a record, it recalculates the document hash from the database records in the update and compares it to the document hash in the inbound message. If the data has changed, for example, if a record was updated or added, the calculated document hash will differ from the document hash in the inbound document and AIF will return an error.</span></div>
<div xmlns="http://www.w3.org/1999/xhtml">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">When you use the document hash, you only have to read and submit one field for comparison instead of reading and submitting the <span class="code" style="color: #000066;">RecId</span> and <span class="code" style="color: #000066;">RecVersion</span> values for each record. However, if a concurrency error occurs when you use the document hash, AIF can only report that a record was changed and not which record changed.<br /><br />While implementing some of the scenarios we may even need to perform update in 1 step this could be only possible when are able to generate <_DocumentHash> using X++. Below code describes same.<br /></span><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">I have created a test class which extends to AxdBaseRecordInfo and have created one method. In the method I am passing a recId for LedgerJournalTrans and it should return documenthash.</span><br /></span><br /></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>class MyHashCode extends AxdBaseRecordInfo</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>{</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>}</i></span></div>
<br /><div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>public static str getHashCode(RecId _recId)</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>{</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> AxdBaseUpdate axdBaseUpdate = AxdbaseUpdate::construct();</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> Map dataSourceMap;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> Query query = new Query(QueryStr(AxdLedgerGeneralJournal));</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> AxdBaseRecordInfo topAxdBaseRecordInfo;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> QueryRun _queryRun;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> str documentHash;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> QueryBuildRange qr;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> LedgerJournalTrans ledgerJournalTrans;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> RecId recId;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> ;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> recId = _recId;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> </i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> select firstOnly ledgerJournalTrans</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> where ledgerJournalTrans.RecId == recId;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> dataSourceMap = new Map(Types::Integer,Types::Integer);</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> </i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> axdbaseUpdate.buildDataSourceParentMap(dataSourceMap, query.dataSourceNo(1)) ;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> query.dataSourceNo(1).addRange(fieldnum(LedgerJournalTrans, RecId)).value(queryValue(recId));</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> topAxdBaseRecordInfo = new AxdBaseRecordInfo(ledgerJournalTrans,1,dataSourceMap);</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> documentHash = topAxdBaseRecordInfo.getRecordHash();</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> return documentHash;</i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div style="font-family: Verdana, sans-serif; margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>}<br /><br />Job<br /></i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>static void generateDocHash(Args _args)</i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>{</i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> ;</i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i> info(MyHashCode::getHashCode(5637158049));</i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i>}</i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="color: #0b5394; font-size: x-small;"><i><a href="http://3.bp.blogspot.com/-oHVH_vE2tWM/UFlzvp8AbFI/AAAAAAAABqo/BxTRg63fV9Q/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-oHVH_vE2tWM/UFlzvp8AbFI/AAAAAAAABqo/BxTRg63fV9Q/s320/1.jpg" width="259" /></a></i></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #0b5394; font-size: x-small;"><i>Above code has been designed to support AX 2012 changes, if you are looking how to perform same in AX 2009 then follow :<br /><a href="http://community.dynamics.com/product/ax/axtechnical/b/axsantoshkumar/archive/2008/07/14/dynamics-ax-update-using-aif-to-get-the-document-hash.aspx">http://community.dynamics.com/product/ax/axtechnical/b/axsantoshkumar/archive/2008/07/14/dynamics-ax-update-using-aif-to-get-the-document-hash.aspx</a><br /><br />Happy DAXing :)</i></span></div>
<div style="margin-top: -6px;" xmlns="http://www.w3.org/1999/xhtml">
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span></div>
<span style="color: #0b5394; font-size: x-small;"><i><br /></i></span><br />
<br />
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com2tag:blogger.com,1999:blog-6778830025337555429.post-29416100716130510802012-09-13T10:30:00.002-07:002012-09-13T10:30:55.150-07:00 “How Do I” Videos — Dynamics AX<div dir="ltr" style="text-align: left;" trbidi="on">
<br /><span style="font-family: Verdana, sans-serif;">Read full post at Dynamics AX Developer Center<br /><span style="font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc507280">http://msdn.microsoft.com/en-us/dynamics/ax/cc507280</a> </span></span><br /><br /><table class="multicol" style="border-collapse: collapse; border-spacing: 0px; border: 0px; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td class="innercol" style="border: 0px; margin: 0px; outline: 0px; padding: 0px 12px 0px 0px;" valign="top"><div class="MainColumn" style="border: 0px; margin: 0px; outline: 0px; padding: 0px; width: 612px;">
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; background-repeat: no-repeat no-repeat; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">“How Do I” Videos — Dynamics AX</span></h3>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<table border="0" cellpadding="5" cellspacing="5" style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" valign="top"><img align="left" alt="" src="http://i.msdn.microsoft.com/ee402630.Video_sm(en-us,MSDN.10).png" style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" title="" /></td><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" valign="top"><span style="font-family: Verdana, sans-serif; font-size: x-small;">On this page you will find videos designed for all Microsoft Dynamics AX developers, from the novice to the professional. New videos are added regularly, so check back often.</span></td></tr>
</tbody></table>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 id="linq" style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; background-repeat: no-repeat no-repeat; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Forms Series</span></h3>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">This how-to video series is focused on forms and their features in Microsoft Dynamics AX.</span></div>
<table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc507279" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to link a parent and child form."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" src="http://i.msdn.microsoft.com/cc507279.DynaLink(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc507279" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to link a parent and child form.">How Do I: Link Parent and Child Forms by Using Dynamic Links?</a><br />(6 minutes, 47 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
</div>
</td></tr>
</tbody></table>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 id="linq" style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; background-repeat: no-repeat no-repeat; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Enterprise Portal Series</span></h3>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">This how-to video series is focused on Enterprise Portal and its features in MicrosoftDynamics AX.</span></div>
<table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc678971" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn the different methods for passing record context in Enterprise Portal."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc678971.EP_QS_001(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc678971" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn the different methods for passing record context in Enterprise Portal.">How Do I: Use Record Context in Enterprise Portal?</a><br />(14 minutes, 51 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc707016" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a simple list page in Enterprise Portal."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc707016.QS1(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc707016" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a simple list page in Enterprise Portal.">How Do I: Create a Simple List Page in Enterprise Portal?</a><br />(4 minutes, 52 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc707045" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a simple task page in Enterprise Portal."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc707045.QS2(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc707045" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a simple task page in Enterprise Portal.">How Do I: Create a Simple Task Page in Enterprise Portal?</a><br />(4 minutes, 39 seconds)</span></div>
</div>
</td></tr>
<tr align="left" style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" valign="top"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc730480" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a simple wizard page in Enterprise Portal."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc730480.QS3(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc730480" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a simple wizard page in Enterprise Portal.">How Do I: Create a Simple Wizard Page in Enterprise Portal?</a><br />(7 minutes, 39 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc730487" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to call an X++ class from an Enterprise Portal user control."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc730487.QS4(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc730487" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to call an X++ class from an Enterprise Portal user control.">How Do I: Call an X++ Class From an EP User Control?</a><br />(7 minutes, 26 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc730505" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to add a range to a dataset and restrict the data displayed in an Enterprise Portal list page."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc730505.QS6(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc730505" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to add a range to a dataset and restrict the data displayed in an Enterprise Portal list page.">How Do I: Add a Range to a Dataset in an EP List Page?</a><br />(5 minutes, 13 seconds)</span></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<br /></div>
</div>
</td></tr>
</tbody></table>
</td></tr>
<tr align="left" style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" valign="top"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd861544" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn about the Enterprise Portal deployment process."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/dd861544.EPDeployment2(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd861544" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a simple wizard page in Enterprise Portal.">Enterprise Portal Deployment Webinar</a><br />(48 minutes, 04 seconds)</span></div>
</div>
</td><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd891008" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to build and customize EP pages."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/dd891008.EP%20Dev%20Webinar%20-%201(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd891008" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to build and customize EP pages.">Enterprise Portal Development Webinar</a><br />(73 minutes, 49 seconds)</span></div>
</div>
</td><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/ee384254" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers and administrators will learn how to set up EP in an NLB cluster."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/ee384254.NLB(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/ee384254" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers and administrators will learn how to set up EP in an NLB cluster.">How Do I: Set Up EP in an NLB Cluster?</a><br />(11 minutes, 34 seconds)</span></div>
</div>
</td></tr>
</tbody></table>
</td></tr>
</tbody></table>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 id="linq" style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; background-repeat: no-repeat no-repeat; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">User Interface Series</span></h3>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">This how-to video series is focused on user interface features in Microsoft Dynamics AX.</span></div>
<table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc664634" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to navigate the client user interface."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc664634.ClientIntroductionThumb(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc664634" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to navigate the client user interface.">How Do I: Navigate the Client User Interface?</a><br />(8 minutes, 53 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
</div>
</td></tr>
</tbody></table>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 id="linq" style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; background-repeat: no-repeat no-repeat; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Integration Series</span></h3>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">This how-to video series is focused on development features that enable integration with Microsoft Dynamics AX including Application Integration Framework (AIF) and Business Connector.</span></div>
<table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc664615" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a custom AIF pipeline component that writes an entry to the exception log."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc664615.CustomPipelineComponentThumb(en-us,MSDN.10).png" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc664615" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create a custom AIF pipeline component that writes an entry to the exception log.">How Do I: Create a Custom AIF Pipeline Component?</a><br />(7 minutes, 28 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc748987" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to integrate an application using the .NET Business Connector."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc748987.BCIntegrationThumb(en-us,MSDN.10).png" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc748987" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to integrate an application using the .NET Business Connector.">How Do I: Integrate an Application Using .NET Business Connector?</a><br />(4 minutes, 46 seconds)</span></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<br /></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd819239" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how send the chart of accounts electronically."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/dd819239.AIF001-150x113(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd819239" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to send the chart of accounts electronically using the AIF file adapter.">How Do I: Send the Chart of Accounts Electronically?</a><br />(6 minutes, 04 seconds)</span></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<br /></div>
</div>
</td></tr>
</tbody></table>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 id="linq" style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; background-repeat: no-repeat no-repeat; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Database Series</span></h3>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">This how-to video series is focused on the database features in Microsoft Dynamics AX.</span></div>
<table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd353220" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to use X++ SQL select statements and how they compare to ASNI SQL select statements."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/dd353220.SQLSelect(en-us,MSDN.10).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd353220" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to use X++ SQL select statements and how they compare to ASNI SQL select statements.">How Do I: Use X++ SQL Select Statements?</a><br />(5 minutes, 54 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 200px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
</div>
</td></tr>
</tbody></table>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; font-family: inherit; font-style: inherit; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 id="linq" style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; background-repeat: no-repeat no-repeat; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Reporting Series</span></h3>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">This how-to video series is focused on reporting features in Microsoft Dynamics AX.</span></div>
<table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc936622" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to integrate an application using the .NET Business Connector."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/cc936622.ReportAOT(en-us,MSDN.10).png" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/cc936622" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create reports using MorphX.">How Do I: Create a Report Using MorphX?</a><br />(7 minutes, 28 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 210px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd797430" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to troubleshoot Role Center reporting errors."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/dd797430.emeaaxtroubleshooting-rolecenter001%20-%20150x113(en-us).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd797430" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to troubleshoot role center report errors.">How Do I: Troubleshoot Role Center Reporting Errors?</a><br />(11 minutes, 18 seconds)</span></div>
</div>
<div style="border: 0px; float: left; font-family: inherit; font-style: inherit; height: 215px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/ee460774" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="AX2009 - Debugging AX 2009 SSRS Reports with VS2008"><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="116" src="http://i.msdn.microsoft.com/ee460774.debuggingdax2009ssrsreportswithvs2008_150x113(en-us).jpg" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="155" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/ee460774" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="AX2009 - Debugging AX 2009 SSRS Reports with VS2008">How Do I: Debug Microsoft Dynamics AX SSRS Reports with Visual Studio 2008?</a><br />(9 minutes, 45 seconds)</span></div>
</div>
</td></tr>
</tbody></table>
</div>
<div class="BostonPostCard" style="border: 0px; clear: both; margin: 0px -12px 12px 0px; outline: 0px; overflow: hidden; padding: 0px 12px 0px 0px; width: 612px;">
<h3 id="linq" style="background-color: #e8e8e8; background-image: url(http://i3.msdn.microsoft.com/Areas/Sto/Content/Theming/images/headers.gif); background-position: -302px -66px; border: 0px; clear: both; color: #260859; font-family: 'Segoe UI Semibold', 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: inherit; height: 26px; line-height: 1.4; margin: 0px 0px 10px; outline: 0px; overflow: hidden; padding: 5px 0px 0px; position: relative; white-space: nowrap;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Miscellaneous Series</span></h3>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">This how-to series contains videos about various features in Microsoft Dynamics AX and related content.</span></div>
<table style="border-spacing: 0px; border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><tbody style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;">
<tr style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><td style="border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px;"><div style="background-color: #ced5db; border: 0px; color: #333333; float: left; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; height: 200px; line-height: 16px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd135212" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to navigate the Microsoft Dynamics AX Developer Center"><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/dd135212.AxDevCenterThumb(en-us,MSDN.10).png" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd135212" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers will learn how to create reports using MorphX.">How Do I: Navigate the Developer Center?</a><br />(3 minutes, 50 seconds)</span></div>
</div>
<div style="background-color: #ced5db; border: 0px; color: #333333; float: left; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; height: 200px; line-height: 16px; margin: 0px 20px 20px 0px; outline: 0px; padding: 0px; width: 150px;">
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd278438" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers and IT professionals will learn how to apply an application hotfix to a Microsoft Dynamics AX installation."><span style="font-family: Verdana, sans-serif; font-size: x-small;"><img alt="" height="123" src="http://i.msdn.microsoft.com/dd278438.DynamicsAXPatchingThumb(en-us,MSDN.10).png" style="border: 1px solid rgb(153, 153, 153); font-style: inherit; margin: 0px; outline: 0px; padding: 0px;" width="145" /></span></a></div>
<div style="border: 0px; font-family: inherit; font-style: inherit; margin-bottom: 12px; outline: 0px; padding: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="http://msdn.microsoft.com/en-us/dynamics/ax/dd278438" style="border: 0px; color: #0066dd; cursor: pointer; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;" title="Developers and IT professionals will learn how to apply an application hotfix to a Microsoft Dynamics AX installation.">How Do I: Apply a Hotfix to an Installation?</a><br />(7 minutes, 46 seconds)</span></div>
</div>
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><br class="Apple-interchange-newline" /></span></td></tr>
</tbody></table>
<br /><b style="font-family: Verdana, sans-serif; font-size: small; font-style: italic;">*Shared from Dynamics AX Developer Center</b>.</div>
</div>
</td></tr>
</tbody></table>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com0tag:blogger.com,1999:blog-6778830025337555429.post-4514983688712923962012-09-07T03:38:00.000-07:002012-09-07T03:38:27.635-07:00How add financial dimension on forms inside Ax2012<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in; text-indent: -0.25in;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXcWboDIBvOpJoJo7yY0BUMI_89tD2IPC0lO-GxCVla0AUWPMYpuH2cho-pmd3b2Z59iZ26hJ4Hy56N7nbr77SFQ8lOkMWkIkUu2VzU_aOn9vQ8QXJYKlsIud53rl5EUSE7kIWEjQwftKB/s1600/1.jpg" imageanchor="1" style="font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-left: 1em; margin-right: 1em; text-align: center; text-indent: 0px;"><img border="0" height="120" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXcWboDIBvOpJoJo7yY0BUMI_89tD2IPC0lO-GxCVla0AUWPMYpuH2cho-pmd3b2Z59iZ26hJ4Hy56N7nbr77SFQ8lOkMWkIkUu2VzU_aOn9vQ8QXJYKlsIud53rl5EUSE7kIWEjQwftKB/s640/1.jpg" width="640" /></a></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-size: 10.5pt;"><br /></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-size: 10.5pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Perform<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.75in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">a)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Open AOT>>Data Dictionary>>Extended Data Types type/select DimensionDefault and drag it in table which will be used further as a datasource in form where you have to show the Dimensions. Do Remember that you have to drag it in table not at DataSource.<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.75in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">b)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Open Table in the Data, Dictionary which will be used as a Datasource, and create a realtion with table DimensionAttributeValueSet .<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.75in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">c)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Right Click the Relations. Select ‘New Realation’. Select properties. Set name as DimensionAttributeValueSet, Table as DimensionAttributeValueSet.<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.75in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">d)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Right Click the this newly created Relation DimensionAttributeValueSet, select New>>Normal.<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.75in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">e)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Set the properties of Normal Realtion as: Field=TheFieldwhichwillsaveDimensionNumberInYourTable<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in; text-indent: 0.25in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">Source EDT= DimensionDefault<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in; text-indent: 0.25in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">Related Field=RecId<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white;"><br /></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-size: 10.5pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Verify that the table that will hold the foreign key to the DimensionAttributeValueSet table is a<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-indent: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">data source on the form(the one on which you have to show dimensions).<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-size: 10.5pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Create a tab that will contain the financial dimensions control. This control is often the only<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.25in; text-indent: 0.25in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">data shown on the tab because the number of financial dimensions can be large.<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-indent: 0.25in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">4. set properties of Tab as under<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">a)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Set the Name metadata of the tab to TabFinancialDimensions.<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">b)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Set the AutoDeclaration metadata of the tab to Yes.<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">c)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Set the Caption metadata of the tab to @SYS101181 (Financial dimensions).<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">d)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Set the NeedPermission metadata of the tab to Manual.<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in; text-indent: -0.25in;">
<span style="background-color: white;"><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">e)<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-family: 'Times New Roman', serif; font-size: 10.5pt;">Set the HideIfEmpty metadata of the tab to No.<o:p></o:p></span></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> 5. Override the pageActivated method on the new tab<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">public void pageActivated()<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">{<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> dimDefaultingController.pageActivated();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white;"><br /></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> super();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">}<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> 6. Override the following methods on the form.<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">class declaration<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">public class FormRun extends ObjectRun<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">{<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> DimensionDefaultingController dimDefaultingController;<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">}<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">init (for the form):<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">public void init()<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">{<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> super();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> dimDefaultingController=DimensionDefaultingController::constructInTabWithValues(<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> true, <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> true, <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> true, <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> 0, <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> this, <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> tabFinancialDimensions, <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> "@SYS138487");<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white;"><br /></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> dimDefaultingController.parmAttributeValueSetDataSource(myTable_ds,<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> fieldstr(myTable, DefaultingDimension));<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 1in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">}<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> 7. Override the following methods on the form data source<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> public int active()<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">{<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> int ret;<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> ret = super();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> dimDefaultingController.activated();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> return ret;<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">}<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">public void write()<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">{<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> dimDefaultingController.writing();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> super();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">}<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">public void delete()<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">{<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> <o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> super();<o:p></o:p></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"> dimDefaultingController.deleted();</span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;">}</span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"><br /></span></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<br /></div>
<div class="MsoNoSpacing" style="color: #666666; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin-left: 0.5in;">
<span style="background-color: white; font-family: 'Times New Roman', serif; font-size: 10.5pt;"><br /><br /></span></div>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com20tag:blogger.com,1999:blog-6778830025337555429.post-72421622307603473922012-09-02T10:47:00.000-07:002012-09-02T10:47:23.022-07:00Encrypt/Decrypt in AX 2012 <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="font-family: Verdana, sans-serif;"><span style="color: #351c75; font-size: large; font-weight: bold;">Encrypt/Decrypt in AX 2012</span><br /><br /><div style="text-align: left;">
<div style="color: #351c75; font-weight: bold;">
<span style="font-size: x-small;"><br /></span></div>
<div style="color: #351c75; font-weight: bold;">
<span style="font-size: x-small;">Create a class, make it has property set to RunOn = Server<br /> OR<br />Create server static method<br /><br />and use the below code.</span></div>
<div style="color: #351c75; font-weight: bold;">
<span style="font-size: x-small;"><br /></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i>static void Job2(Args _args)</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i>{</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> CryptoApi cryptoApi;</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> Container cont,cont1;</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> ContainerClass cc;</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> ;</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> </i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> /* Salt is like a password, While encrypting and descrypting the phrase, the CryptoAPI class has to instantiated with same salt(99999999999). The phrases/words are encrypted & decrypted based on the salt. */</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> cryptoApi = new CryptoApi(99999999999);</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> cc = new ContainerClass(["test123"]);</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> cont = CryptoApi.encrypt(cc.toBlob()); // The encrypt method requires BLOB as a parameter</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> cont1 = ContainerClass::blob2Container(CryptoApi.decrypt(cont));</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> info(Strfmt("Encrypted:%1",BinData::dataToString(cont)));</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i> info(con2str(cont1));</i></span></div>
<div>
<span style="color: #3d85c6; font-size: x-small;"><i>}</i></span></div>
</div>
</span></div>
<span class="fullpost">
</span></div>
Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com7tag:blogger.com,1999:blog-6778830025337555429.post-42969839276284064462012-08-27T04:36:00.000-07:002012-08-27T04:56:56.169-07:00AIF Vendor Electronic Payment | AX 2012<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<w:sdt contentlocked="t" id="89512093" sdtgroup="t"><span style="font-family: "Calibri","sans-serif"; font-size: 1pt; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;"><w:sdtpr></w:sdtpr><w:sdt docpart="3821CA2C81F8413C944046A575E87393" id="89512082" showingplchdr="t" storeitemid="X_3DFF15C9-905B-434A-80F5-AF8A9AF803A1" text="t" title="Post Title" xpath="/ns0:BlogPostInfo/ns0:PostTitle"></w:sdt></span></w:sdt><br />
<div class="Publishwithline">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-border-bottom-themecolor: accent1; mso-element: para-border-div; padding-bottom: 4pt; padding-left: 0in; padding-right: 0in; padding-top: 0in;">
<div align="center" class="MsoTitle" style="text-align: center;">
<span style="color: blue; font-family: Trebuchet MS, sans-serif; font-size: large;"><b>AIF Vendor Electronic Payment - AX 2012<o:p></o:p></b></span></div>
</div>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" title="User left click on "Microsoft Dynamics AX 2012 (menu button)""><tbody>
<tr><td style="padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in; width: 570pt;" width="760"><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Problem Step 1: </span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">User left click on "Microsoft Dynamics AX 2012 (menu button)" <o:p></o:p></span></td></tr>
<tr><td style="padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in; width: 570pt;" width="760"><i><span style="color: #575757; font-family: "Segoe UI","sans-serif";">No screenshots were saved for this problem step.</span></i><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><o:p></o:p></span></td></tr>
<tr><td style="padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in; width: 570pt;" width="760"><div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-cmrlxgafMv8/UDtUIg7McyI/AAAAAAAABoU/kr-tFMkJmwE/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="http://4.bp.blogspot.com/-cmrlxgafMv8/UDtUIg7McyI/AAAAAAAABoU/kr-tFMkJmwE/s400/1.jpg" width="357" /></a></div>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin: 0in;">
<b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">Problem Step 2: </span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; mso-fareast-font-family: 'Times New Roman';">Go to development environment. <i>Press ctrl+D to open AOT >> Resources >> VendPayments_SEPACreditTransfer_xslt.</i><o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="ProblemStep2" name="ProblemStep2" title="User left click on "Microsoft Dynamics AX - Wipro Limited [L-219024200: Session ID - 3] - [1 - ceu] (list item)""><tbody>
<tr><td colspan="2" style="padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in; width: 588.95pt;" width="785"><div class="MsoNormal" style="margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin: 0in;">
<span style="color: #575757; font-family: "Segoe UI","sans-serif"; mso-fareast-font-family: 'Times New Roman';">Right click >> Open >> Select Resource type as XML >> Export.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6kwKgFMUXa1v4rj7FVTEkcgp1nMiLRuUQZzdqG2_xpeRM5cRye6sB1HvDi7OrNqxBU8cRP5ELuCZEJeiJPMfM5PxHE2XsexSHekh68BHFQ9AdjBN7AGLUfyuDe8UWY-DZAApsLPXC0-ci/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="363" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6kwKgFMUXa1v4rj7FVTEkcgp1nMiLRuUQZzdqG2_xpeRM5cRye6sB1HvDi7OrNqxBU8cRP5ELuCZEJeiJPMfM5PxHE2XsexSHekh68BHFQ9AdjBN7AGLUfyuDe8UWY-DZAApsLPXC0-ci/s640/1.jpg" width="640" /></a></div>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
<div class="MsoNormal" style="margin: 0in;">
<b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">Problem Step 3:</span></b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"> </span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; mso-fareast-font-family: 'Times New Roman';">Go to System administration >> Services & Application Integration Framework >> Electronic Payment Services >> Outbound ports for electronic payments. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
</td><td style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; mso-cell-special: placeholder; padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in;" width="28"><div class="MsoNormal">
<br /></div>
</td></tr>
<tr><td colspan="3" style="padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in; width: 609.9pt;" width="813"><div id="ProblemStepP">
<br /></div>
<b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Problem Step 4: </span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">User left click on "New (menu item)" in "Outbound ports for electronic payments" and create new port.<o:p></o:p></span><br />
<br />
<span style="color: #575757; font-family: "Segoe UI","sans-serif";">Specify the SEPA XSLT exported in <b>Step 2</b> in XSLT field.<o:p></o:p></span><br />
<span style="color: #575757; font-family: "Segoe UI","sans-serif";">Define the Outbound folder, where the payment xml will be pushed.<o:p></o:p></span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-vT8fcRNj7lU/UDtV017-sVI/AAAAAAAABo0/-iJn0zHriNE/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="390" src="http://2.bp.blogspot.com/-vT8fcRNj7lU/UDtV017-sVI/AAAAAAAABo0/-iJn0zHriNE/s640/1.jpg" width="640" /></a></div>
<div style="margin-top: 0in;">
<br />
<br /></div>
<span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /><br /><br /><br /><br /><br /><br /><br /></span> </td></tr>
</tbody></table>
</div>
</div>
<br />
<br />
<br />
<span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Problem Step 5: </span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; mso-bidi-font-weight: bold;">Create new processing date record.</span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><o:p></o:p></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyI5i0HV_IaNpHwTgQ_EG7usPsPgW8xU7cYsjK-sAxp9dfODsZIWNhFncqkUUYyhg_vNxexJzEniE46mGTGmiW1auTMPMqFSgjan71_QE_eXjSOEkux0C6ivn1eXxSx4A1nHt1HDENP827/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="406" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyI5i0HV_IaNpHwTgQ_EG7usPsPgW8xU7cYsjK-sAxp9dfODsZIWNhFncqkUUYyhg_vNxexJzEniE46mGTGmiW1auTMPMqFSgjan71_QE_eXjSOEkux0C6ivn1eXxSx4A1nHt1HDENP827/s640/1.jpg" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span> </div>
<br />
<br />
<br />
<br />
<br />
<span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Click <b>Create ports. </b>It will create and deploy an Outbound port over AIF. </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-ah8F9QwjzOM/UDtWDRnS3yI/AAAAAAAABo8/CdmcRUjX0vI/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="340" src="http://2.bp.blogspot.com/-ah8F9QwjzOM/UDtWDRnS3yI/AAAAAAAABo8/CdmcRUjX0vI/s640/1.jpg" width="640" /></a></div>
<div style="margin-top: 0in;">
<v:rect fillcolor="white [3201]" id="Rectangle_x0020_31" o:gfxdata="UEsDBBQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSRvU7DMBSF
dyTewfKKEqcMCKEmHfgZgaE8wMW+SSwc27JvS/v23KTJgkoXFsu+P+c7Ol5vDoMTe0zZBl/LVVlJ
gV4HY31Xy4/tS3EvRSbwBlzwWMsjZrlprq/W22PELHjb51r2RPFBqax7HCCXIaLnThvSAMTP1KkI
+gs6VLdVdad08ISeCho1ZLN+whZ2jsTzgcsnJwldluLxNDiyagkxOquB2Knae/OLUsyEkjenmdzb
mG/YhlRnCWPnb8C898bRJGtQvEOiVxjYhtLOxs8AySiT4JuDystlVV4WPeM6tK3VaILeDZxIOSsu
ti/jidNGNZ3/J08yC1dNv9v8AAAA//8DAFBLAwQUAAYACAAAACEArTA/8cEAAAAyAQAACwAAAF9y
ZWxzLy5yZWxzhI/NCsIwEITvgu8Q9m7TehCRpr2I4FX0AdZk2wbbJGTj39ubi6AgeJtl2G9m6vYx
jeJGka13CqqiBEFOe2Ndr+B03C3WIDihMzh6RwqexNA281l9oBFTfuLBBhaZ4ljBkFLYSMl6oAm5
8IFcdjofJ0z5jL0MqC/Yk1yW5UrGTwY0X0yxNwri3lQgjs+Qk/+zfddZTVuvrxO59CNCmoj3vCwj
MfaUFOjRhrPHaN4Wv0VV5OYgm1p+LW1eAAAA//8DAFBLAwQUAAYACAAAACEA8SmiJaQCAAArBgAA
HwAAAGNsaXBib2FyZC9kcmF3aW5ncy9kcmF3aW5nMS54bWysVN9P2zAQfp+0/8HyOyQt5VdFQF03
0KQKEAHxfDhOE+HYnu2GdH/9znbSVqwa0raX1nf33efzd3e5uOoaQVpubK1kRkeHKSVcMlXUcpnR
p8frgzNKrANZgFCSZ3TNLb26/PzpAqZLA7qqGUEGaaeQ0co5PU0SyyregD1UmkuMlco04NA0y6Qw
8IbMjUjGaXqSNFBLerml+goOyMrUf0ElFHvlxRxkCxYpBZvuevoaBft3ZpjK9sboXN8bXzm7be8N
qYuMonISGpSIJn2gh6GZvMtabgm60jQer8qSdBkdj9LzySlyrbEb6eR4kqbHkZB3jjBEjMZHR2fo
JMxD0DrvAay6+4iDVd/+zIKFxoLwsFOk1b5E2f7+6qPR8OwHznBOloIT9A0SDAlWL7BBNkqBmkV/
kGULiYr+L0E2T4GpNtbdcNUQf8iowUrD2EG7sC7WNED8O4UMr1XXtRAx6j3IZ/umuy4PgrjuiyrW
HvyC/zgHRiE9Ns9qdl3jXQuw7h4M7gY6ccvcHf6UQr1lVPUnSiplfu7zezzOK0YpecNdy6j9sQLD
KRHfpc3o+WgyQVoXjMnx6RgNsxt52Y3IVTNXAicmVBeOHu/EcCyNap6VKWb+VgyBZHh3RpkzgzF3
aGMIV5rx2SycmWo0uIXMNS7XKMjqtXzsnsHoXnCHs3ur8go036d7xEbNZyunyrpvSlQ1tMS63K0F
D3MVtOey8Mo+oOoCxy6jXB485X7wsFGIwN9te1aW59oPaAwP/bOeMtDLB17iFvsFDBWGbxifC0Na
QNGAMS7dSc8uPNqnlTggm8T49neJwoVdwGJ6rE/jZYmlbBLTj2/cZIRbldwmN7VUZh9B8bq5OeLj
BMcXh1lGx7vPZID0n3X/Ld61L38BAAD//wMAUEsDBBQABgAIAAAAIQCcTl4h4gYAADocAAAaAAAA
Y2xpcGJvYXJkL3RoZW1lL3RoZW1lMS54bWzsWU9vG0UUvyPxHUZ7b+P/jaM6VezYDbRpo9gt6nG8
Hu9OM7uzmhkn9Q21RyQkREEcqMSNAwIqtRKX8mkCRVCkfgXezOyud+I1SdsIKmgO8e7b37z/782b
3ctX7kUMHRIhKY87XvVixUMk9vmExkHHuzUaXFj3kFQ4nmDGY9Lx5kR6Vzbff+8y3vAZTcYci8ko
JBFBwCiWG7jjhUolG2tr0gcylhd5QmJ4NuUiwgpuRbA2EfgIBERsrVaptNYiTGNvEzgqzajP4F+s
pCb4TAw1G4JiHIH0m9Mp9YnBTg6qGiHnsscEOsSs4wHPCT8akXvKQwxLBQ86XsX8eWubl9fwRrqI
qRVrC+sG5i9dly6YHNSMTBGMc6HVQaN9aTvnbwBMLeP6/X6vX835GQD2fbDU6lLk2RisV7sZzwLI
Xi7z7lWalYaLL/CvL+nc7na7zXaqi2VqQPaysYRfr7QaWzUHb0AW31zCN7pbvV7LwRuQxbeW8INL
7VbDxRtQyGh8sITWAR0MUu45ZMrZTil8HeDrlRS+QEE25NmlRUx5rFblWoTvcjEAgAYyrGiM1Dwh
U+xDTvZwNBYUawF4g+DCE0vy5RJJy0LSFzRRHe/DBMdeAfLy2fcvnz1Bx/efHt//6fjBg+P7P1pG
zqodHAfFVS++/ezPRx+jP5588+LhF+V4WcT/+sMnv/z8eTkQymdh3vMvH//29PHzrz79/buHJfAt
gcdF+IhGRKIb5Ajt8wgMM15xNSdj8WorRiGmxRVbcSBxjLWUEv59FTroG3PM0ug4enSJ68HbAtpH
GfDq7K6j8DAUM0VLJF8LIwe4yznrclHqhWtaVsHNo1kclAsXsyJuH+PDMtk9HDvx7c8S6JtZWjqG
90LiqLnHcKxwQGKikH7GDwgpse4OpY5fd6kvuORThe5Q1MW01CUjOnayabFoh0YQl3mZzRBvxze7
t1GXszKrt8mhi4SqwKxE+RFhjhuv4pnCURnLEY5Y0eHXsQrLlBzOhV/E9aWCSAeEcdSfECnL1twU
YG8h6NcwdKzSsO+yeeQihaIHZTyvY86LyG1+0AtxlJRhhzQOi9gP5AGkKEZ7XJXBd7lbIfoe4oDj
leG+TYkT7tO7wS0aOCotEkQ/mYmSWF4l3Mnf4ZxNMTGtBpq606sjGv9d42YUOreVcH6NG1rl868f
lej9trbsLdi9ympm50SjXoU72Z57XEzo29+dt/Es3iNQEMtb1Lvm/K45e//55ryqns+/JS+6MDRo
PYvYQduM3dHKqXtKGRuqOSPXpRm8Jew9kwEQ9TpzuiT5KSwJ4VJXMghwcIHAZg0SXH1EVTgMcQJD
e9XTTAKZsg4kSriEw6Ihl/LWeBj8lT1qNvUhxHYOidUun1hyXZOzs0bOxmgVmANtJqiuGZxVWP1S
yhRsex1hVa3UmaVVjWqmKTrScpO1i82hHFyemwbE3Jsw1CAYhcDLLTjfa9Fw2MGMTLTfbYyysJgo
nGeIZIgnJI2Rtns5RlUTpCxXlgzRdthk0AfHU7xWkNbWbN9A2lmCVBTXWCEui96bRCnL4EWUgNvJ
cmRxsThZjI46XrtZa3rIx0nHm8I5GS6jBKIu9RyJWQBvmHwlbNqfWsymyhfRbGeGuUVQhVcf1u9L
Bjt9IBFSbWMZ2tQwj9IUYLGWZPWvNcGt52VASTc6mxb1dUiGf00L8KMbWjKdEl8Vg12gaN/Z27SV
8pkiYhhOjtCYzcQ+hvDrVAV7JlTC6w7TEfQNvJvT3jaP3OacFl3xjZjBWTpmSYjTdqtLNKtkCzcN
KdfB3BXUA9tKdTfGvboppuTPyZRiGv/PTNH7Cbx9qE90BHx40Ssw0pXS8bhQIYculITUHwgYHEzv
gGyB97vwGJIK3kqbX0EO9a+tOcvDlDUcItU+DZCgsB+pUBCyB23JZN8pzKrp3mVZspSRyaiCujKx
ao/JIWEj3QNbem/3UAipbrpJ2gYM7mT+ufdpBY0DPeQU683pZPnea2vgn558bDGDUW4fNgNN5v9c
xXw8WOyqdr1Znu29RUP0g8WY1ciqAoQVtoJ2WvavqcIrbrW2Yy1ZXGtmykEUly0GYj4QJfAOCel/
sP9R4TP7BUNvqCO+D70VwccLzQzSBrL6gh08kG6QljiGwckSbTJpVta16eikvZZt1uc86eZyTzhb
a3aWeL+is/PhzBXn1OJ5Ojv1sONrS1vpaojsyRIF0jQ7yJjAlH3J2sUJGgfVjgdfkyDQ9+AKvkd5
QKtpWk3T4Ao+MsGwZL8Mdbz0IqPAc0vJMfWMUs8wjYzSyCjNjALDWfoNJqO0oFPpzybw2U7/eCj7
QgITXPpFJWuqzue+zb8AAAD//wMAUEsDBBQABgAIAAAAIQCcZkZBuwAAACQBAAAqAAAAY2xpcGJv
YXJkL2RyYXdpbmdzL19yZWxzL2RyYXdpbmcxLnhtbC5yZWxzhI/NCsIwEITvgu8Q9m7SehCRJr2I
0KvUBwjJNi02PyRR7Nsb6EVB8LIws+w3s037sjN5YkyTdxxqWgFBp7yenOFw6y+7I5CUpdNy9g45
LJigFdtNc8VZ5nKUxikkUigucRhzDifGkhrRykR9QFc2g49W5iKjYUGquzTI9lV1YPGTAeKLSTrN
IXa6BtIvoST/Z/thmBSevXpYdPlHBMulFxagjAYzB0pXZ501LV2BiYZ9/SbeAAAA//8DAFBLAQIt
ABQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAAAAAAAAAAAAAAAAAAABbQ29udGVudF9UeXBlc10u
eG1sUEsBAi0AFAAGAAgAAAAhAK0wP/HBAAAAMgEAAAsAAAAAAAAAAAAAAAAANgEAAF9yZWxzLy5y
ZWxzUEsBAi0AFAAGAAgAAAAhAPEpoiWkAgAAKwYAAB8AAAAAAAAAAAAAAAAAIAIAAGNsaXBib2Fy
ZC9kcmF3aW5ncy9kcmF3aW5nMS54bWxQSwECLQAUAAYACAAAACEAnE5eIeIGAAA6HAAAGgAAAAAA
AAAAAAAAAAABBQAAY2xpcGJvYXJkL3RoZW1lL3RoZW1lMS54bWxQSwECLQAUAAYACAAAACEAnGZG
QbsAAAAkAQAAKgAAAAAAAAAAAAAAAAAbDAAAY2xpcGJvYXJkL2RyYXdpbmdzL19yZWxzL2RyYXdp
bmcxLnhtbC5yZWxzUEsFBgAAAAAFAAUAZwEAAB4NAAAAAA==
" o:spid="_x0000_s1028" stroked="f" strokeweight="2pt" style="height: 8.85pt; margin-left: 142.65pt; margin-top: 71.35pt; mso-height-percent: 0; mso-height-relative: page; mso-position-horizontal-relative: text; mso-position-horizontal: absolute; mso-position-vertical-relative: text; mso-position-vertical: absolute; mso-width-percent: 0; mso-width-relative: page; mso-wrap-distance-bottom: 0; mso-wrap-distance-left: 9pt; mso-wrap-distance-right: 9pt; mso-wrap-distance-top: 0; mso-wrap-style: square; position: absolute; v-text-anchor: middle; visibility: visible; width: 97.15pt; z-index: 251661312;"><v:path arrowok="t"></v:path></v:rect><br />
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="ProblemStep32" name="ProblemStep32" title="User left click on "Microsoft Dynamics AX - Wipro Limited [L-219024200: Session ID - 3] - [1 - ceu] (list item)""><tbody>
<tr><td style="padding-bottom: 0in; padding-left: 0in; padding-right: 0in; padding-top: 0in; width: 570pt;" width="760"><div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Problem Step 6: </span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">Click Area Page node: <b>Accounts payable -> Journals -> Payments -> Payment journal.</b></span><span class="DAXTRMenuPath"><o:p></o:p></span></div>
<div class="DAXTRFormOpen">
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><i>Create new journal<o:p></o:p></i></span></div>
<br />
<br />
<div class="MsoNormal">
<a href="http://4.bp.blogspot.com/-3S2r4qSXxC0/UDtWO2lcEgI/AAAAAAAABpE/8swdbltlXJA/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="436" src="http://4.bp.blogspot.com/-3S2r4qSXxC0/UDtWO2lcEgI/AAAAAAAABpE/8swdbltlXJA/s640/1.jpg" width="640" /></a><o:p></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<br />
<div class="MsoNormal">
<b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Problem Step 7</span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">: Click the <b>Lines button.</b></span><span class="DAXTRCaption"><o:p></o:p></span></div>
<div class="DAXTRFormOpen">
<br /></div>
<div class="DAXTRFormOpen">
<span style="color: blue; font-family: Arial, Helvetica, sans-serif;"><i>Create new lines</i></span></div>
<br />
<div class="MsoNormal">
<b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"></span></b></div>
<div class="MsoNormal">
<b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAqthdXQSakpPcDURmn4xmulIhrEgblqzTuJ08ygstRwW4BKmqiwyDK77Juz3IMSCof1Y9_tNmQQ-bLgK5ian4XqHaxQcoHJC1J8UVn-qGn-APNM8imr-bu0o2x5l_GLV7-F5GHluQV-u/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="336" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAqthdXQSakpPcDURmn4xmulIhrEgblqzTuJ08ygstRwW4BKmqiwyDK77Juz3IMSCof1Y9_tNmQQ-bLgK5ian4XqHaxQcoHJC1J8UVn-qGn-APNM8imr-bu0o2x5l_GLV7-F5GHluQV-u/s640/1.jpg" width="640" /></a><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<div class="MsoNormal">
<b><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></b></div>
<b>Problem Step 8:</b> <b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">Click the </span></b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">Functions -> Generate payments menu button.</span><span class="DAXTRMenuPath"><o:p></o:p></span><br />
<div class="DAXTRFormOpen">
<a href="http://www.blogger.com/blogger.g?blogID=6778830025337555429" name="_Toc332843413">Form name: Microsoft Dynamics AX</a><o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUoJVSvGaxz7VkY9cGQLtL4jigTn8ECPiyJaCPYX9jvuDIz3_BeqzIzrb2DuPrWczUTn9KKtNN4_63uJ_ZGisRjEFaYt-ARdFzsbUenn7NzGcMwayWVwaMNwLb40_IlyW4C_fMJZ9NPeWf/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="409" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUoJVSvGaxz7VkY9cGQLtL4jigTn8ECPiyJaCPYX9jvuDIz3_BeqzIzrb2DuPrWczUTn9KKtNN4_63uJ_ZGisRjEFaYt-ARdFzsbUenn7NzGcMwayWVwaMNwLb40_IlyW4C_fMJZ9NPeWf/s640/1.jpg" width="640" /></a></div>
<div class="MsoNormal">
<v:shapetype coordsize="21600,21600" id="_x0000_t202" o:spt="202" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter"></v:stroke><v:path gradientshapeok="t" o:connecttype="rect"></v:path></v:shapetype><v:shape filled="f" id="Text_x0020_Box_x0020_2" o:gfxdata="UEsDBBQABgAIAAAAIQC75UiUBQEAAB4CAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSRvU7DMBSF
dyTewfKKEqcMCKEmHfgZgaE8wMW+SSwc27JvS/v23KTJgkoXFsu+P+c7Ol5vDoMTe0zZBl/LVVlJ
gV4HY31Xy4/tS3EvRSbwBlzwWMsjZrlprq/W22PELHjb51r2RPFBqax7HCCXIaLnThvSAMTP1KkI
+gs6VLdVdad08ISeCho1ZLN+whZ2jsTzgcsnJwldluLxNDiyagkxOquB2Knae/OLUsyEkjenmdzb
mG/YhlRnCWPnb8C898bRJGtQvEOiVxjYhtLOxs8AySiT4JuDystlVV4WPeM6tK3VaILeDZxIOSsu
ti/jidNGNZ3/J08yC1dNv9v8AAAA//8DAFBLAwQUAAYACAAAACEArTA/8cEAAAAyAQAACwAAAF9y
ZWxzLy5yZWxzhI/NCsIwEITvgu8Q9m7TehCRpr2I4FX0AdZk2wbbJGTj39ubi6AgeJtl2G9m6vYx
jeJGka13CqqiBEFOe2Ndr+B03C3WIDihMzh6RwqexNA281l9oBFTfuLBBhaZ4ljBkFLYSMl6oAm5
8IFcdjofJ0z5jL0MqC/Yk1yW5UrGTwY0X0yxNwri3lQgjs+Qk/+zfddZTVuvrxO59CNCmoj3vCwj
MfaUFOjRhrPHaN4Wv0VV5OYgm1p+LW1eAAAA//8DAFBLAwQUAAYACAAAACEAH3yl35UCAAC5BQAA
HwAAAGNsaXBib2FyZC9kcmF3aW5ncy9kcmF3aW5nMS54bWysVG1P2zAQ/j5p/8Hyd0iatpRWpAgY
oEmMIQo/4Oo4TTS/ZLabpvx6znZaOiYxaVs/pGff+bnnnjv77LyTgrTc2FqrnA6OU0q4Yrqo1Sqn
z083R6eUWAeqAKEVz+mWW3o+//zpDGYrA01VM4IIys4gp5VzzSxJLKu4BHusG67QV2ojweHSrJLC
wAaRpUiyND1JJNSKzt+gvoADsjb1X0AJzX7w4gpUCxYhBZsd7vQcBft3ZJip9tY0i+bBeObsvn0w
pC5yisopkCgRTXpHH4bL5N2p1RtAVxrp43VZki6nWTrNpieItcVuZIPpaDxKIyDvHGEYMRxmE9wj
DCOy9GQ4GfcJq+9/gmDV9YcgSDPSQeOAom08QdX+XvMwneyqfvL8LnVHsn39Pp64DjexltBn29xh
nyxR+qoCteIXxuhNxaGwPiIKhYrGREG0XU7rsZabb7pAhWHtdMD7T+Lt64ZZY6y75VoSb+TUcOZC
JmjvrIsEdyFBFH1TCxEaLhTZ5HQ6zsbhgHrzyNpxQ0Qtc3qa+l9UyNd9rYpw2EEtoo1chAoT40v2
OVy3CA3wShZbv7PEf5TDaGSIk4DXF41KmxdKNngpc2p/rsFwSsRXhcpOByM/MC4sRuNJhgtz6Fke
ekAxhMqpoySaVw5XaV/UBUpf1r0SkYdnJKxbuK3goZjA1vdLgrkLDNF43GHYhl3y0h9C68FZ0oLI
aZxiLP4X90XpPgoMbjzTCxXUMphX4GzllKuj5wW+Xi/+JqHoHomXJXY0thJZg6sVcduGl8Bwrp5q
yS255xvyqCWo2CYOH0dgfszpwd184G86UvZ74YtS+J1959aWL5pHpBBHKbYWI/wVS949WuFo/8j6
l/FwPX8FAAD//wMAUEsDBBQABgAIAAAAIQCcTl4h4gYAADocAAAaAAAAY2xpcGJvYXJkL3RoZW1l
L3RoZW1lMS54bWzsWU9vG0UUvyPxHUZ7b+P/jaM6VezYDbRpo9gt6nG8Hu9OM7uzmhkn9Q21RyQk
REEcqMSNAwIqtRKX8mkCRVCkfgXezOyud+I1SdsIKmgO8e7b37z/782b3ctX7kUMHRIhKY87XvVi
xUMk9vmExkHHuzUaXFj3kFQ4nmDGY9Lx5kR6Vzbff+8y3vAZTcYci8koJBFBwCiWG7jjhUolG2tr
0gcylhd5QmJ4NuUiwgpuRbA2EfgIBERsrVaptNYiTGNvEzgqzajP4F+spCb4TAw1G4JiHIH0m9Mp
9YnBTg6qGiHnsscEOsSs4wHPCT8akXvKQwxLBQ86XsX8eWubl9fwRrqIqRVrC+sG5i9dly6YHNSM
TBGMc6HVQaN9aTvnbwBMLeP6/X6vX835GQD2fbDU6lLk2RisV7sZzwLIXi7z7lWalYaLL/CvL+nc
7na7zXaqi2VqQPaysYRfr7QaWzUHb0AW31zCN7pbvV7LwRuQxbeW8INL7VbDxRtQyGh8sITWAR0M
Uu45ZMrZTil8HeDrlRS+QEE25NmlRUx5rFblWoTvcjEAgAYyrGiM1DwhU+xDTvZwNBYUawF4g+DC
E0vy5RJJy0LSFzRRHe/DBMdeAfLy2fcvnz1Bx/efHt//6fjBg+P7P1pGzqodHAfFVS++/ezPRx+j
P5588+LhF+V4WcT/+sMnv/z8eTkQymdh3vMvH//29PHzrz79/buHJfAtgcdF+IhGRKIb5Ajt8wgM
M15xNSdj8WorRiGmxRVbcSBxjLWUEv59FTroG3PM0ug4enSJ68HbAtpHGfDq7K6j8DAUM0VLJF8L
Iwe4yznrclHqhWtaVsHNo1kclAsXsyJuH+PDMtk9HDvx7c8S6JtZWjqG90LiqLnHcKxwQGKikH7G
Dwgpse4OpY5fd6kvuORThe5Q1MW01CUjOnayabFoh0YQl3mZzRBvxze7t1GXszKrt8mhi4SqwKxE
+RFhjhuv4pnCURnLEY5Y0eHXsQrLlBzOhV/E9aWCSAeEcdSfECnL1twUYG8h6NcwdKzSsO+yeeQi
haIHZTyvY86LyG1+0AtxlJRhhzQOi9gP5AGkKEZ7XJXBd7lbIfoe4oDjleG+TYkT7tO7wS0aOCot
EkQ/mYmSWF4l3Mnf4ZxNMTGtBpq606sjGv9d42YUOreVcH6NG1rl868flej9trbsLdi9ympm50Sj
XoU72Z57XEzo29+dt/Es3iNQEMtb1Lvm/K45e//55ryqns+/JS+6MDRoPYvYQduM3dHKqXtKGRuq
OSPXpRm8Jew9kwEQ9TpzuiT5KSwJ4VJXMghwcIHAZg0SXH1EVTgMcQJDe9XTTAKZsg4kSriEw6Ih
l/LWeBj8lT1qNvUhxHYOidUun1hyXZOzs0bOxmgVmANtJqiuGZxVWP1SyhRsex1hVa3UmaVVjWqm
KTrScpO1i82hHFyemwbE3Jsw1CAYhcDLLTjfa9Fw2MGMTLTfbYyysJgonGeIZIgnJI2Rtns5RlUT
pCxXlgzRdthk0AfHU7xWkNbWbN9A2lmCVBTXWCEui96bRCnL4EWUgNvJcmRxsThZjI46XrtZa3rI
x0nHm8I5GS6jBKIu9RyJWQBvmHwlbNqfWsymyhfRbGeGuUVQhVcf1u9LBjt9IBFSbWMZ2tQwj9IU
YLGWZPWvNcGt52VASTc6mxb1dUiGf00L8KMbWjKdEl8Vg12gaN/Z27SV8pkiYhhOjtCYzcQ+hvDr
VAV7JlTC6w7TEfQNvJvT3jaP3OacFl3xjZjBWTpmSYjTdqtLNKtkCzcNKdfB3BXUA9tKdTfGvbop
puTPyZRiGv/PTNH7Cbx9qE90BHx40Ssw0pXS8bhQIYculITUHwgYHEzvgGyB97vwGJIK3kqbX0EO
9a+tOcvDlDUcItU+DZCgsB+pUBCyB23JZN8pzKrp3mVZspSRyaiCujKxao/JIWEj3QNbem/3UAip
brpJ2gYM7mT+ufdpBY0DPeQU683pZPnea2vgn558bDGDUW4fNgNN5v9cxXw8WOyqdr1Znu29RUP0
g8WY1ciqAoQVtoJ2WvavqcIrbrW2Yy1ZXGtmykEUly0GYj4QJfAOCel/sP9R4TP7BUNvqCO+D70V
wccLzQzSBrL6gh08kG6QljiGwckSbTJpVta16eikvZZt1uc86eZyTzhba3aWeL+is/PhzBXn1OJ5
Ojv1sONrS1vpaojsyRIF0jQ7yJjAlH3J2sUJGgfVjgdfkyDQ9+AKvkd5QKtpWk3T4Ao+MsGwZL8M
dbz0IqPAc0vJMfWMUs8wjYzSyCjNjALDWfoNJqO0oFPpzybw2U7/eCj7QgITXPpFJWuqzue+zb8A
AAD//wMAUEsDBBQABgAIAAAAIQCcZkZBuwAAACQBAAAqAAAAY2xpcGJvYXJkL2RyYXdpbmdzL19y
ZWxzL2RyYXdpbmcxLnhtbC5yZWxzhI/NCsIwEITvgu8Q9m7SehCRJr2I0KvUBwjJNi02PyRR7Nsb
6EVB8LIws+w3s037sjN5YkyTdxxqWgFBp7yenOFw6y+7I5CUpdNy9g45LJigFdtNc8VZ5nKUxikk
UigucRhzDifGkhrRykR9QFc2g49W5iKjYUGquzTI9lV1YPGTAeKLSTrNIXa6BtIvoST/Z/thmBSe
vXpYdPlHBMulFxagjAYzB0pXZ501LV2BiYZ9/SbeAAAA//8DAFBLAQItABQABgAIAAAAIQC75UiU
BQEAAB4CAAATAAAAAAAAAAAAAAAAAAAAAABbQ29udGVudF9UeXBlc10ueG1sUEsBAi0AFAAGAAgA
AAAhAK0wP/HBAAAAMgEAAAsAAAAAAAAAAAAAAAAANgEAAF9yZWxzLy5yZWxzUEsBAi0AFAAGAAgA
AAAhAB98pd+VAgAAuQUAAB8AAAAAAAAAAAAAAAAAIAIAAGNsaXBib2FyZC9kcmF3aW5ncy9kcmF3
aW5nMS54bWxQSwECLQAUAAYACAAAACEAnE5eIeIGAAA6HAAAGgAAAAAAAAAAAAAAAADyBAAAY2xp
cGJvYXJkL3RoZW1lL3RoZW1lMS54bWxQSwECLQAUAAYACAAAACEAnGZGQbsAAAAkAQAAKgAAAAAA
AAAAAAAAAAAMDAAAY2xpcGJvYXJkL2RyYXdpbmdzL19yZWxzL2RyYXdpbmcxLnhtbC5yZWxzUEsF
BgAAAAAFAAUAZwEAAA8NAAAAAA==
" o:spid="_x0000_s1026" stroked="f" style="height: 16.25pt; margin-left: 141.35pt; margin-top: 143.9pt; mso-height-percent: 0; mso-height-relative: margin; mso-position-horizontal-relative: text; mso-position-horizontal: absolute; mso-position-vertical-relative: text; mso-position-vertical: absolute; mso-width-percent: 0; mso-width-relative: margin; mso-wrap-distance-bottom: 0; mso-wrap-distance-left: 9pt; mso-wrap-distance-right: 9pt; mso-wrap-distance-top: 0; mso-wrap-style: square; position: absolute; v-text-anchor: top; visibility: visible; width: 26.2pt; z-index: 251673600;" type="#_x0000_t202"></v:shape><v:shape id="Picture_x0020_33" o:spid="_x0000_i1027" style="height: 300.75pt; mso-wrap-style: square; visibility: visible; width: 468pt;" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:\Users\mhirw\AppData\Local\Temp\msohtmlclip1\01\clip_image022.png"></v:imagedata></v:shape><br />
<br />
<o:p></o:p></div>
<div class="MsoNormal">
<o:p><br /><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Problem Step 9</span></b><span style="color: #575757; font-family: 'Segoe UI', sans-serif; font-size: 11pt;">: Click the <b>OK button.</b></span></o:p></div>
<div class="DAXTRFormOpen">
<a href="http://www.blogger.com/blogger.g?blogID=6778830025337555429" name="_Toc332843414">Form name: Payment processing data</a><o:p></o:p></div>
<div class="DAXTRFormOpen">
<a href="http://www.blogger.com/blogger.g?blogID=6778830025337555429" name="_Toc332843414"><br /></a></div>
<div class="MsoNormal">
<v:shape id="Picture_x0020_47" o:spid="_x0000_i1026" style="height: 372pt; mso-wrap-style: square; visibility: visible; width: 462pt;" type="#_x0000_t75"><v:imagedata o:title="" src="file:///C:\Users\mhirw\AppData\Local\Temp\msohtmlclip1\01\clip_image024.png"></v:imagedata></v:shape><o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzTq9u4Op_XtfCKLH8pZp1V9v0vUu8NDAWtFHf966rZ0DuanKxDY3vze2LWaWnwANmodUllOFxnahcngCwm9s9djUUeGFPZLEHCmzoWoqT-HkULj_R1f_9AVX2yNLlCD1Zff6y4FYEaWTk/s1600/1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="512" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzTq9u4Op_XtfCKLH8pZp1V9v0vUu8NDAWtFHf966rZ0DuanKxDY3vze2LWaWnwANmodUllOFxnahcngCwm9s9djUUeGFPZLEHCmzoWoqT-HkULj_R1f_9AVX2yNLlCD1Zff6y4FYEaWTk/s640/1.jpg" width="640" /></a></div>
<div class="MsoNormal">
<o:p></o:p> </div>
<br />
<br />
<br />
<br />
<br />
<div class="MsoNormal">
<br /><br /><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></div>
</td></tr>
</tbody></table>
</div>
<div class="MsoNormal">
<o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";"><br /></span></b></o:p><o:p><b><span style="color: #575757; font-family: "Segoe UI","sans-serif";">Problem Step 10</span></b>. <b><span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">Click the </span></b><span style="color: #575757; font-family: 'Segoe UI', sans-serif; font-size: 11pt;">OK button.</span></o:p></div>
<div class="MsoNormal">
<span style="color: #575757; font-family: "Segoe UI","sans-serif"; font-size: 11pt;">Goto AOT >> Jobs and run the job to process AIF message.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-yOq2x4jtgv8/UDtZ7w7xfvI/AAAAAAAABps/ILzzd3a0zE0/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="340" src="http://1.bp.blogspot.com/-yOq2x4jtgv8/UDtZ7w7xfvI/AAAAAAAABps/ILzzd3a0zE0/s640/1.jpg" width="640" /></a></div>
<div class="MsoNormal" style="margin: 0in;">
<span style="color: #575757; font-family: "Segoe UI","sans-serif"; mso-fareast-font-family: 'Times New Roman';"><br /></span></div>
<div class="MsoNormal" style="margin: 0in;">
<br /></div>
<span class="fullpost"></span>Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com0tag:blogger.com,1999:blog-6778830025337555429.post-84103089919138102112012-07-20T23:25:00.001-07:002012-07-20T23:25:23.210-07:00Model deployment AX 2012<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Verdana, sans-serif;">Hi,<br /><br />Recently I came across a very nice article "Model deployment among Multiple AOS Instance". Below script enables to deploy Model and perform all steps automatically like Starting service, application compilation, sync etc.</span><br /><span style="font-family: Verdana, sans-serif;">Steps:</span><span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;"><br /> </span><span style="font-family: Verdana, sans-serif;"><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;">- Load AX Management scripts </span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - Stop the AOS</span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - Clean up (delete layers)</span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - Import new ax model</span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - Start AOS</span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - Do a sync</span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - Do a compile</span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - Do a CIL generation</span><br style="color: #222222; line-height: 18px; text-align: -webkit-auto;" /><span style="color: #222222; line-height: 18px; text-align: -webkit-auto;"> - You can not test your code<br /><br />Script :<br /></span></span><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">param(</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [string] $MODELPATH = $(throw "Model path required"),</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [string] $AXCONFIGPATH = $(throw "AX configuration file required"),</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [string] $MODELTODEPLOY = "PCGModel",</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [string] $DOAXSYNC = "y", </span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [string] $DOAXCOMPILE = "y", </span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [string] $LAYERSTOCLEAN = "",</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [long] $AXIMPORTTIMEOUT = 300000,</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [long] $AXSYNCTIMEOUT = 1800000,</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> [long] $AXCOMPILETIMEOUT = 10800000</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> )</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">& 'C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities\Microsoft.Dynamics.ManagementUtilities.ps1'</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if(!(Test-Path $MODELPATH))</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw ("Error: Source path " + $MODELPATH + "does not exist")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if(!(Test-Path $AXCONFIGPATH))</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw ("Error: Could not find configuration file " + $AXCONFIGPATH)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$computername = gc env:computername</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Get the client bin directory from the config file</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$axClientPath = [string] (type $AXCONFIGPATH | Select-String "bindir")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$axClientPath = ($axClientPath.split(","))[2]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Get the server name from the config file</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServer = [string] (type $AXCONFIGPATH | Select-String "aos2")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServer = ($aosServer.split(","))[2]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosInstance = ($aosServer.split("@"))[0]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServer = ($aosServer.split("@"))[1]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($aosServer -eq $null)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw "Error: The config file is incorrect (does not contain the AOS Instance name)"</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServer = ($aosServer.split(":"))[0]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Make sure we're on the right server</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($aosServer -ne (gc env:computername))</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw "Error: Script must be run on the AOS server the config file points to"</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Get the layer and layercode from the configuration</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$buildlayer = [string] (type $AXCONFIGPATH | Select-String "aol,")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$buildlayer = ($buildlayer.split(","))[2]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$buildlayerCode = [string] (type $AXCONFIGPATH | Select-String "aolcode,")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$buildlayerCode = ($buildlayerCode.split(","))[2]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if($buildLayerCode -eq $null) # -and $buildLayerCode -ne "usr") -or $buildLayerCode -eq ""))</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw ("No layer specified for build layer " + $buildlayer)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Get the log path</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$logPath = [string] (type $AXCONFIGPATH | Select-String "logDir")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$logPath = ($logPath.split(","))[2]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$logPath = $env:UserProfile + '\Microsoft\Dynamics Ax\Log\'</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Get the AOS port from the configuration (aos name is ignored when connecting, so port is the only valid identifier)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosPort = [string] (type $AXCONFIGPATH | Select-String "aos2")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosPort = ($aosPort.split(","))[2]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosPort = ($aosPort.split(":"))[1]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Open the list of servers running on this machine</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosRegistryPath = "hklm:`\SYSTEM`\CurrentControlSet`\services`\Dynamics Server`\6.0"</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServers = Get-Item $aosRegistryPath</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServers = $aosServers.GetSubKeyNames()</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosService = ""</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">for ($i=0; $i -le ($aosServers.Length - 1); $i++)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Get the server properties, to find the current active config</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $serverProperties = Get-ItemProperty ($aosRegistryPath + "`\" + $aosServers[$i])</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Get the configuration</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $serverConfiguration = Get-ItemProperty ($aosRegistryPath + "`\" + $aosServers[$i] + "`\" + $serverProperties.Current)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># If this is our AOS port, get out of the loop</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> if ($serverConfiguration.port -eq $aosPort)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> {</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $aosService = "AOS60`$" + $aosServers[$i]</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> break</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> }</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $aosService = ""</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># If we didn't find it, throw an error</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($aosService -eq "")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw "Error: Could not find configuration for server running on port " + $aosPort</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Query the service for status</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServiceObj = Get-Service $aosService</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($aosServiceObj.Status -eq "Running")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># If it's running, stop the service</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Stop-Service -WarningAction:SilentlyContinue ($aosService)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Refresh our object</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServiceObj.Refresh()</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($aosServiceObj.Status -eq "Running")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># If it's still running, something's wrong!</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw "Error: AOS service still running"</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Function to clear out layer artifacts</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">Function CleanLayer([string] $layer)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Uninstall-AXModel -Layer $layer -Config $aosInstance -NoPrompt</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">CleanLayer "usr"</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">CleanLayer $buildLayer</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">Install-AXModel -File $MODELPATH -NoPrompt -Config $aosInstance</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">Set-AXModelStore -Config $aosInstance -NoInstallMode</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Start the AOS service</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">Start-Service -WarningAction:SilentlyContinue ($aosService)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># Refresh our object</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$aosServiceObj.Refresh()</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($aosServiceObj.Status -ne "Running")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"># If it's not running, something's wrong!</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw "Error: AOS service could not be started"</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">$params = "`"" + $AXCONFIGPATH + "`" -lazyclassloading -lazytableloading -model=" + ($MODELTODEPLOY)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> </span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($DOAXSYNC -eq "y")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $date = Get-Date</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $axProcess = Start-Process -PassThru ($axClientPath + "`\Ax32.exe") -ArgumentList ($params + " -StartupCmd=Synchronize")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> if ($axProcess.WaitForExit($AXSYNCTIMEOUT) -eq $false)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> {</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw ("Error: Synchronize did not complete within " + $AXSYNCTIMEOUT / 60000 + " minutes")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> }</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">}</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">if ($DOAXCOMPILE -eq "y")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;">{</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $date = Get-Date</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Write-Host "[AX CHECK] Compiling application ... takes a long time; Task started: " $date</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> $axProcess = Start-Process -PassThru ($axClientPath + "`\Ax32.exe") -ArgumentList ($params + " -StartupCmd=CompileAll")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> if ($axProcess.WaitForExit($AXCOMPILETIMEOUT) -eq $false)</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> {</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> Throw ("Error: Compile did not complete within " + $AXCOMPILETIMEOUT / 60000 + " minutes")</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; font-style: italic; line-height: 18px; text-align: -webkit-auto;"> }</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;" /><span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: -webkit-auto;"><i style="color: blue;">}</i><br /><br /><b>Shared by - </b></span><b>
<a href="http://axfaq.blogspot.in/2012/02/ax2012-utils-its-all-about-scripting_22.html">http://axfaq.blogspot.in/2012/02/ax2012-utils-its-all-about-scripting_22.html</a></b><span class="fullpost">
</span></div>Mukesh Hirwanihttp://www.blogger.com/profile/16819968907447258215noreply@blogger.com1