[SysClientCacheDataMethodAttribute(true)]
Thursday, October 10, 2024
Copy Data From One Table To Another Table By Using buf2buf- Ax 2012 BUF2BUF buf2buf
/// <summary>
/// Global class used for generic methods.
/// added by santhosh
/// </summary>
class LSGlobal
{
public static void buf2buf(Common _from, Common _to)
{
DictTable dictTableFrom = new DictTable(_from.TableId);
DictTable dictTableTo = new DictTable(_to.TableId);
DictField dictFieldFrom;
FieldId fieldIdFrom = dictTableFrom.fieldNext(0);
FieldId fieldIdTo;
while (fieldIdFrom && ! isSysId(fieldIdFrom))
{
dictFieldFrom = new DictField(_from.TableId, fieldIdFrom);
if(dictFieldFrom)
{
fieldIdTo = dictTableTo.fieldName2Id(dictFieldFrom.name());
if(fieldIdTo)
_to.(fieldIdTo) = _from.(fieldIdFrom);
}
fieldIdFrom = dictTableFrom.fieldNext(fieldIdFrom);
}
}
}
Link https://rahulmsdax.blogspot.com/2015/04/copy-data-from-one-table-to-another.html?m=1
Entity Relationship Diagram in D365F&O
Entity Relationship Diagram in D365F&O
Invoice capture OCR copilot automater invoices from vendor
https://learn.microsoft.com/en-us/dynamics365/finance/accounts-payable/invoice-capture-overview
Data storage Azure Data Lake Azure Data Lake Storage (ADLS) Azure Synapse Analytics Bring Your Own Database (BYOD) Azure Blob Storage
Azure Data Lake: Scalable storage service optimized for big data analytics. It stores both structured and unstructured data at any scale.
Azure Data Lake Storage (ADLS): Enhanced version of Azure Blob storage, optimized for analytics and providing hierarchical namespaces for data organization.
Azure Synapse Analytics: Integrated analytics service combining big data and data warehousing. It allows querying both relational and non-relational data.
Bring Your Own Database (BYOD): Concept where organizations use their own databases in Azure, integrating them with other services like Dynamics 365 for better flexibility and control.
Azure Blob Storage: Object storage solution optimized for storing massive amounts of unstructured data like text, images, and videos.
DB restore in d365 fo dev environment ssms bak
https://support.managed.com/kb/a1788/how-to-manually-restore-an-mssql-database-in-sql-management-studio-ssms.aspx#:~:text=Log%20into%20SQL%20Server%20Management%20Studio.%20N%20avigate,to%20the%20correct%20database.%20Select%20the%20Options%20tab
Unified Experience dev d365 fo development server
https://devblogs.microsoft.com/powerplatform/the-public-preview-for-the-unified-experience-is-live/
SSRS report with query D365 fo dynamics query with records to include in report
DP CLASS
Controller
Find Current Exchange rate using X++ / Ax
/// <summary>
/// Global class used for generic methods.
/// added by santhosh
/// </summary>
class LSGlobal
{
public static real LSexchangeRate(
CurrencyCode fromCurrency,
CurrencyCode toCurrency,
TransDate transDate = today())
{
ExchangeRate exchangeRate;
ExchangeRateType ExchangeRateType;
ExchangeRateCurrencyPair exchangeRateCurrencyPair;
real exchRate;
select firstonly exchangeRateCurrencyPair
where exchangeRateCurrencyPair.ExchangeRateType == Ledger::find(Ledger::current()).DefaultExchangeRateType
&& exchangeRateCurrencyPair.FromCurrencyCode == fromCurrency
&& exchangeRateCurrencyPair.ToCurrencyCode == toCurrency;
exchRate = exchangeRate::findByDate(exchangeRateCurrencyPair.RecId,transDate).ExchangeRate;
return exchRate/100;
}
}
Wednesday, October 9, 2024
Planned order in d365
What is Planned Transfer Orders in d365
In Dynamics 365 Finance and Operations (D365 F&O), Planned Transfer Orders are part of the Master Planning module, which is used to handle intercompany or intersite transfers of goods based on planned demand. Essentially, they represent a forecasted or planned movement of inventory between two different warehouses, sites, or legal entities within an organization.
Key Features of Planned Transfer Orders:
1. Demand-Driven: They are generated when there is a forecast or demand for a product at a particular location, but the inventory needs to be transferred from another location to meet that demand.
2. Generated by Master Planning: When Master Planning runs, it analyzes current stock levels, future demand, and supply, and it generates planned transfer orders if there’s a need to move inventory between different sites or warehouses.
3. Conversion to Transfer Orders: Planned transfer orders are not actual transactions. They are suggestions or plans that need to be reviewed and converted into actual transfer orders, which can then be processed for execution.
4. Optimization of Stock Levels: By using planned transfer orders, a company can ensure optimal stock levels across different locations, reducing the risk of stockouts in some locations while preventing overstock in others.
5. Lead Time Consideration: When creating planned transfer orders, D365 F&O takes into account lead times, transportation methods, and other logistical details to ensure that the stock will arrive in time to meet demand.
In short, Planned Transfer Orders help streamline internal logistics and stock movements across different locations within an organization, making sure that goods are in the right place at the right time.
Understanding the Planned Order Process in Dynamics 365 F&O
The process of handling Planned Orders in Dynamics 365 F&O starts with Master Planning and ends with the firming of the order. Let’s break down this process step by step:
1. Master Planning Setup
- Define planning parameters such as lead times, item coverage, safety stock, and replenishment rules (like make-to-order or make-to-stock).
2. Demand Forecasting and Supply Analysis
- Master planning runs based on sales orders, demand forecasts, or safety stock levels.
- The system analyzes the demand and supply requirements for the products.
3. Master Planning Run
- Execute Master Planning or Forecast Planning to create suggestions for fulfilling demands.
- The system generates Planned Orders for production, purchase, or transfer.
4. Review Planned Orders
- Users can review the Planned Production Orders, Planned Purchase Orders, or Planned Transfer Orders generated.
- The planner checks if the planned orders align with business needs and adjusts any quantities, dates, or other parameters if necessary.
5. Firming the Planned Order
- Once the planner is satisfied with the suggested orders, they firm the planned orders.
- Firming converts the planned order into an actionable order:
- Planned Purchase Order → Purchase Order
- Planned Production Order → Production Order
- Planned Transfer Order → Transfer Order
6. Execution of Firmed Orders
- After firming, the purchase orders are sent to suppliers, production orders are sent to manufacturing, and transfer orders are processed for moving goods between warehouses.
7. Completion of Order
- The process ends when the firmed orders are completed (products are produced, purchased, or transferred as required).