How do I set the reason code for an inventory adjustment added through Microsoft Dynamics web services?
up vote
0
down vote
favorite
I'm using the Microsoft Dynamics web services to create a new adjustment. It works fine, but I need to add a reason code. I've found how to add everything (doc number, date, batch, warehouse, item #, quantity), but I can't find anything to set the reason code. Anyone out there know how to do this?
This is what I'm trying to add:
I'm using the CreateInventoryAdjustment from here: https://docs.microsoft.com/en-us/previous-versions/dynamicsgp/developer/cc508604(v%3dmsdn.10).
My best guess was the reason code would be set at the document line level, but I can't find any options for "reason code".
// Populate the required properties of the inventory line adjustment object
inventoryAdjustmentLine.Key = inventoryLineKey;
inventoryAdjustmentLine.ItemKey = itemKey;
inventoryAdjustmentLine.Quantity = itemQuantity;
inventoryAdjustmentLine.WarehouseKey = warehouseKey;
// Create an array to hold the inventory line adjustment object
InventoryAdjustmentLine lines = {inventoryAdjustmentLine};
// Add the array of inventory adjustment lines to the inventory adjustment object
inventoryAdjustment.Lines = lines;
microsoft-dynamics gp
add a comment |
up vote
0
down vote
favorite
I'm using the Microsoft Dynamics web services to create a new adjustment. It works fine, but I need to add a reason code. I've found how to add everything (doc number, date, batch, warehouse, item #, quantity), but I can't find anything to set the reason code. Anyone out there know how to do this?
This is what I'm trying to add:
I'm using the CreateInventoryAdjustment from here: https://docs.microsoft.com/en-us/previous-versions/dynamicsgp/developer/cc508604(v%3dmsdn.10).
My best guess was the reason code would be set at the document line level, but I can't find any options for "reason code".
// Populate the required properties of the inventory line adjustment object
inventoryAdjustmentLine.Key = inventoryLineKey;
inventoryAdjustmentLine.ItemKey = itemKey;
inventoryAdjustmentLine.Quantity = itemQuantity;
inventoryAdjustmentLine.WarehouseKey = warehouseKey;
// Create an array to hold the inventory line adjustment object
InventoryAdjustmentLine lines = {inventoryAdjustmentLine};
// Add the array of inventory adjustment lines to the inventory adjustment object
inventoryAdjustment.Lines = lines;
microsoft-dynamics gp
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using the Microsoft Dynamics web services to create a new adjustment. It works fine, but I need to add a reason code. I've found how to add everything (doc number, date, batch, warehouse, item #, quantity), but I can't find anything to set the reason code. Anyone out there know how to do this?
This is what I'm trying to add:
I'm using the CreateInventoryAdjustment from here: https://docs.microsoft.com/en-us/previous-versions/dynamicsgp/developer/cc508604(v%3dmsdn.10).
My best guess was the reason code would be set at the document line level, but I can't find any options for "reason code".
// Populate the required properties of the inventory line adjustment object
inventoryAdjustmentLine.Key = inventoryLineKey;
inventoryAdjustmentLine.ItemKey = itemKey;
inventoryAdjustmentLine.Quantity = itemQuantity;
inventoryAdjustmentLine.WarehouseKey = warehouseKey;
// Create an array to hold the inventory line adjustment object
InventoryAdjustmentLine lines = {inventoryAdjustmentLine};
// Add the array of inventory adjustment lines to the inventory adjustment object
inventoryAdjustment.Lines = lines;
microsoft-dynamics gp
I'm using the Microsoft Dynamics web services to create a new adjustment. It works fine, but I need to add a reason code. I've found how to add everything (doc number, date, batch, warehouse, item #, quantity), but I can't find anything to set the reason code. Anyone out there know how to do this?
This is what I'm trying to add:
I'm using the CreateInventoryAdjustment from here: https://docs.microsoft.com/en-us/previous-versions/dynamicsgp/developer/cc508604(v%3dmsdn.10).
My best guess was the reason code would be set at the document line level, but I can't find any options for "reason code".
// Populate the required properties of the inventory line adjustment object
inventoryAdjustmentLine.Key = inventoryLineKey;
inventoryAdjustmentLine.ItemKey = itemKey;
inventoryAdjustmentLine.Quantity = itemQuantity;
inventoryAdjustmentLine.WarehouseKey = warehouseKey;
// Create an array to hold the inventory line adjustment object
InventoryAdjustmentLine lines = {inventoryAdjustmentLine};
// Add the array of inventory adjustment lines to the inventory adjustment object
inventoryAdjustment.Lines = lines;
microsoft-dynamics gp
microsoft-dynamics gp
edited 8 hours ago
James Wood
13.6k22161
13.6k22161
asked 8 hours ago
boilers222
78131530
78131530
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53265650%2fhow-do-i-set-the-reason-code-for-an-inventory-adjustment-added-through-microsoft%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password