Dynamics 365 Field Service : Adjust inventory levels

Managing inventory is a critical part of field service operations. Whether it’s correcting stock discrepancies, accounting for damaged goods, or handling returns, adjusting inventory levels ensures your records reflect reality. Dynamics 365 Field Service provides robust tools for inventory adjustments that are seamlessly integrated with its Work Orders, Warehouses, and Product tracking.
In this blog, we’ll dive deep into why and how to adjust inventory levels, and explore the technical underpinnings that make it work.
Why Adjust Inventory Levels?
Inventory adjustments are used when:
- A field technician finds fewer items than recorded during a stock check.
- Damaged or expired items need to be written off.
- Extra stock is discovered and needs to be added back into the system.
- Transfers between warehouses didn’t update the inventory properly.
Key Goal: Ensure real-time, accurate inventory tracking to prevent overstocking or stockouts.
Inventory Adjustment
1. Identify the inventory discrepancy
- Triggered by stock audits, returns, or system reconciliation.
2. Choose adjustment type
- Increase: Adding items to inventory.
- Decrease: Removing items from inventory.
3. Select the product and warehouse (or van)
4. Enter adjustment quantity and reason
5. Submit and process
6. System updates inventory levels
- Reflects changes in Inventory Journals, Warehouse records, and Available Quantity.
Technical Process: How It Works in D365 Field Service
🔑 Key Entities Involved
Step-by-Step Process in the App
1. Navigate to Inventory Adjustments
- Go to Field Service → Inventory → Inventory Adjustments.
2. Create New Adjustment Record
- Click New.
- Enter a name and select the warehouse (or van location) where the adjustment is being made.
3. Add Products
- In the Inventory Adjustment Products subgrid, add each product:
- Select the product.
- Enter the adjustment type: Increase or Decrease.
- Specify the quantity.
- Optionally, provide a reason (e.g., Damaged, Found during audit).
4. Save and Submit
- Once all products are added, save the record.
- Status changes to Submitted.
5. System Processing
The system automatically:
- Updates Product Inventory records.
- Generates corresponding Inventory Journal entries for audit.
- Adjusts On Hand Quantity at the specified warehouse/van.
Technical Deep Dive: Behind the Scenes
Business Rules and Workflows
- Validation Rules: Ensure that only products stocked in the selected warehouse can be adjusted.
- Plugins/Workflows (if customized): Can trigger alerts or integrate with ERP systems (e.g., Dynamics 365 Finance & Operations).
- System Jobs: Handles bulk adjustments asynchronously for performance.
Data Model Relationships
Inventory Adjustment
↳ Inventory Adjustment Product
↳ Product
↳ Warehouse (via Product Inventory)
API & SDK (Developer Perspective)
You can create adjustments programmatically using the Dataverse Web API or SDK.
Sample C Code:
var adjustment = new Entity("msdyn_inventoryadjustment");
adjustment["msdyn_name"] = "Stock Correction - July";
adjustment["msdyn_warehouse"] = new EntityReference("msdyn_warehouse", warehouseId);
var adjustmentId = service.Create(adjustment);
var adjustmentProduct = new Entity("msdyn_inventoryadjustmentproduct");
adjustmentProduct["msdyn_inventoryadjustment"] = new EntityReference("msdyn_inventoryadjustment", adjustmentId);
adjustmentProduct["msdyn_product"] = new EntityReference("product", productId);
adjustmentProduct["msdyn_adjustmenttype"] = new OptionSetValue(690970001); // 690970001 = Increase
adjustmentProduct["msdyn_quantity"] = 10;
service.Create(adjustmentProduct);
This will create an adjustment and update the warehouse stock.
Security Considerations
- Only users with the Field Service – Inventory Management privilege can perform adjustments.
- Role-based security ensures that field technicians can adjust stock only for their assigned vans.
Pro Tips
For Functional Consultants:
- Configure reason codes for adjustments to capture detailed insights.
- Set up business process flows to guide users through complex adjustments.
For Developers:
- Leverage Azure Functions + Power Automate for custom integrations (e.g., sync adjustments with external ERP).
- Use Plugins on `Create`/`Update` of `Inventory Adjustment Product` for validation.
For Admins:
Audit logs and Inventory Journals are critical for tracking all adjustments.
Benefits of Accurate Inventory Adjustment
- Reduces failed service visits due to unavailable parts.
- Minimizes financial loss from unnoticed stock discrepancies.
- Improves customer satisfaction with faster response times.
Final Thoughts
Adjusting inventory levels in Dynamics 365 Field Service is not just a housekeeping activity—it’s a vital process to maintain operational efficiency and customer trust. By understanding the business logic and technical framework, both functional consultants and developers can implement adjustments effectively and even automate parts of the process.
Published on:
Learn moreRelated posts
Dynamics 365 Field Service : Transfer inventory between warehouses
In Dynamics 365 Field Service, inventory management is a critical capability for organizations managing parts, tools, and consumables across m...
Dynamics 365 Field Service : View product inventory
In Field Service operations, knowing what inventory you have, where it’s located, and its current status is critical. Dynamics 365 Field Servi...
Dynamics 365 Field Service : Perform inspections, including adding ad hoc inspections
Inspections in Dynamics 365 Field Service provide technicians and service agents with a structured and standardized way to capture inspection ...
Dynamics 365 Field Service : Configure geocoding for a custom table
Dynamics 365 Field Service enables businesses to deliver onsite service to customer locations efficiently. One of the core features that power...
Dynamics 365 Field Service : Set up inventory and warehouses
In Dynamics 365 Field Service, inventory management plays a vital role in ensuring that your technicians have the right parts at the right tim...
Dynamics 365 Field Service : Enable and configure location tracking and geofencing
In the world of field service management, keeping track of technicians’ locations and movements is not just a convenience—it’s a necessity. It...
Dynamics 365 Field Service : Configure security roles
In the world of Dynamics 365 Field Service, one of the most critical tasks in system administration is configuring security roles. As organiza...
Dynamics 365 Field Service : Perform time entry
In the world of field service management, tracking how much time technicians spend on each job is critical for understanding cost, improving p...
Dynamics 365 Field Service : Customize the mobile app including forms, views, pages, and navigation
Field technicians rely heavily on mobile applications to execute tasks efficiently while on the go. Microsoft’s Dynamics 365 Field Service mob...