CreateMovementArticleItems

This function is used to create movement article items.

Tags: CreateMovementArticleItems, CreateMovementArticleItemsOperation, CreateMovement_ArticleItem, CreateMovement_To, CreateMovement_MovementArticleItemType, CreateMovement_AssignedUser, CreateMovementArticleItemsResponse, CreateMovementArticleItemsResult, CreateMovementArticleItemsError, CreatedMovementArticleItem

Request XML

POST /xxx/Automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/CreateMovementArticleItems"

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateMovementArticleItems xmlns="http://ongoingsystems.se/Automation">
      <UserName>string</UserName>
      <Password>string</Password>
      <Operation>
        <ArticleItem>
          <ArticleItemId>int</ArticleItemId>
          <OriginalArticleItemId>int</OriginalArticleItemId>
          <ArticleDefId>int</ArticleDefId>
          <FromLocation>string</FromLocation>
        </ArticleItem>
        <WorkOrderId>int</WorkOrderId>
        <ToLocation>
          <Location>string</Location>
        </ToLocation>
        <NumberOfItems>decimal</NumberOfItems>
        <SortIndex>int</SortIndex>
        <MovementArticleItemType>
          <MovementArticleItemTypeId>int</MovementArticleItemTypeId>
          <MovementArticleItemTypeCode>string</MovementArticleItemTypeCode>
        </MovementArticleItemType>
        <AssignedUser>
          <UserName>string</UserName>
        </AssignedUser>
      </Operation>
    </CreateMovementArticleItems>
  </soap:Body>
</soap:Envelope>

Request specification

CreateMovementArticleItems
UserName string(50) Req. Your username
Password string(50) Req. Your password
Operation CreateMovementArticleItemsOperation Req. The operation object
CreateMovementArticleItemsOperation
ArticleItem CreateMovement_ArticleItem An element of type CreateMovement_ArticleItem.
WorkOrderId int
ToLocation CreateMovement_To An element of type CreateMovement_To.
NumberOfItems decimal
SortIndex int
MovementArticleItemType CreateMovement_MovementArticleItemType An element of type CreateMovement_MovementArticleItemType.
AssignedUser CreateMovement_AssignedUser An element of type CreateMovement_AssignedUser.
CreateMovement_ArticleItem
ArticleItemId int
OriginalArticleItemId int
ArticleDefId int
FromLocation string
CreateMovement_To
Location string
CreateMovement_MovementArticleItemType
MovementArticleItemTypeId int
MovementArticleItemTypeCode string
CreateMovement_AssignedUser
UserName string

Response XML

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateMovementArticleItemsResponse xmlns="http://ongoingsystems.se/Automation">
      <CreateMovementArticleItemsResult>
        <Success>boolean</Success>
        <Errors>
          <CreateMovementArticleItemsError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or ArticleItemNotSpecified or ArticleItemIdentificationNotSupplied or NoArticleItemsFound or ArticleDefIdNotFound or ArticleDefIdIsDeleted or FromLocationNotFound or ToLocationNotFound or WorkOrderIdNotFound or MovementArticleItemTypeNotFound or AssignedUserNotFound or AssignedUserHasNotMovePermissions or ArticleItemAlreadyInToLocation or ErrorCreatingMovementArticleItems</ErrorType>
          </CreateMovementArticleItemsError>
          <CreateMovementArticleItemsError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or ArticleItemNotSpecified or ArticleItemIdentificationNotSupplied or NoArticleItemsFound or ArticleDefIdNotFound or ArticleDefIdIsDeleted or FromLocationNotFound or ToLocationNotFound or WorkOrderIdNotFound or MovementArticleItemTypeNotFound or AssignedUserNotFound or AssignedUserHasNotMovePermissions or ArticleItemAlreadyInToLocation or ErrorCreatingMovementArticleItems</ErrorType>
          </CreateMovementArticleItemsError>
        </Errors>
        <CreatedMovementArticleItems>
          <CreatedMovementArticleItem>
            <MovementArticleItemId>int</MovementArticleItemId>
            <OriginalArticleItemId>int</OriginalArticleItemId>
            <ArticleItemId>int</ArticleItemId>
            <WorkOrderId>int</WorkOrderId>
            <ToMoveNumberOfItems>decimal</ToMoveNumberOfItems>
            <ArticleItemNumberOfItems>decimal</ArticleItemNumberOfItems>
          </CreatedMovementArticleItem>
          <CreatedMovementArticleItem>
            <MovementArticleItemId>int</MovementArticleItemId>
            <OriginalArticleItemId>int</OriginalArticleItemId>
            <ArticleItemId>int</ArticleItemId>
            <WorkOrderId>int</WorkOrderId>
            <ToMoveNumberOfItems>decimal</ToMoveNumberOfItems>
            <ArticleItemNumberOfItems>decimal</ArticleItemNumberOfItems>
          </CreatedMovementArticleItem>
        </CreatedMovementArticleItems>
      </CreateMovementArticleItemsResult>
    </CreateMovementArticleItemsResponse>
  </soap:Body>
</soap:Envelope>

Response specification

CreateMovementArticleItemsResponse
CreateMovementArticleItemsResult CreateMovementArticleItemsResult
CreateMovementArticleItemsResult
Success boolean
Errors CreateMovementArticleItemsError[]
CreatedMovementArticleItems CreatedMovementArticleItem[]
CreateMovementArticleItemsError
Message string
ErrorType enum An element of type CreateMovementArticleItemsErrorType.
CreatedMovementArticleItem
MovementArticleItemId int
OriginalArticleItemId int
ArticleItemId int
WorkOrderId int
ToMoveNumberOfItems decimal
ArticleItemNumberOfItems decimal