mfg-inventory-allocation

Guides inventory allocation and deallocation workflows in Salesforce Manufacturing Cloud.

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/salesforce-misc/ManuAssist --skill mfg-inventory-allocation-salesforce-misc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mfg-inventory-allocation
Source: https://github.com/salesforce-misc/ManuAssist/tree/main/skills/mfg-inventory-allocation
Command: npx skills add https://github.com/salesforce-misc/ManuAssist --skill mfg-inventory-allocation-salesforce-misc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Implementing and troubleshooting Manufacturing Cloud Inventory Allocation requires deep knowledge of reservation APIs, async MQ processing, quantity state transitions, and product-type constraints that are easy to get wrong. ## Core Features & Use Cases - Allocation & Deallocation API Guidance: Covers all allocation patterns (location-level, batch-level, serialized batch, unbatched serialized) and five deallocation scopes with request payloads and validation behavior. - Async Processing & Status Transitions: Explains the MQ-based processing layer, reservation status lifecycle (Reservation In Progress → Reserved → Cancellation In Progress → Cancelled), and SerializedProduct AllocationStatus changes. - Test Data & Troubleshooting: Provides test data creation patterns, SOQL queries for ProductItem and reservation objects, persona-led FAQ, and symptom-based troubleshooting tables. - Use Case: A consultant asks why a customer's allocation is stuck in "Reservation In Progress" — the skill points to ProductItemAdditionalTransaction status, MQ lock contention, and retry behavior. ## Quick Start Ask how to allocate inventory for an order across multiple locations in Manufacturing Cloud and walk through the reservation status transitions.

Frequently Asked Questions about mfg-inventory-allocation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I allocate inventory to an order in Salesforce Manufacturing Cloud?

Call POST connect/inventory/allocation with the order sourceId, line items, locations, and quantities. The API validates the request, enqueues an MQ message, and asynchronously updates ProductItem.QuantityAllocated before setting the reservation status to Reserved.

How do I deallocate a single serialized product in Manufacturing Cloud?

Send a deallocation request scoped to that serial using serializedProductIds for unbatched products, or batchItemIds plus serializedProductIds for batched ones. Other serials remain Allocated, and the targeted serial flips to Deallocated after async processing.

Can I allocate batched products with the Inventory Allocation API?

No. The current implementation explicitly rejects batched products and serialized products inside a batch with the CONTAINS_BATCHED_PRODUCT error. Only standard products and unbatched serialized products are supported.

Why is my allocation stuck in Reservation In Progress?

The MQ consumer has not finished processing, often due to lock contention on the ProductItem. Check ProductItemAdditionalTransaction.TransactionStatus and QuantityStateRefreshDate; the consumer retries up to 3 times before falling back to manual sync.

What permissions are required for Inventory Allocation in Manufacturing Cloud?

The org needs the InventoryAllocation org perm and InventoryAllocationEnabled preference. Users need the ManageInventoryAllocation permission and the InvAllocationUserPsl license. A 403 on Allocate almost always means one of these is missing.

Does the allocation API block over-allocation of inventory?

No. The system warns but does not block allocations exceeding available quantity, so QuantityAvailable can go negative. A custom validation layer is needed if a hard guard is required.