This topic contains 2 replies, has 0 voices, and was last updated by tect22 9 years, 5 months ago.

  • Author
    Posts
  • #6981

    Claytonm

    How can I update a custom free-form text field on an existing inventory item record using the PHP API.

    I have the internalID of the Item, the internalID of the field, and the value i want to update it with.

    Could anyone post a working PHP code snipit of this please? Ive tried a handful of different things from examples ive seen for other record types and nothing seems to be working.
    This is a cached copy. Click here to see the original post.

  • #6982

    Rox Flame

    We tried this on a current project and the way the SOAP call needs to be structured isn’t supported by the PHP SOAP library (https://bugs.php.net/bug.php?id=39179). Looks like they’ve tried to do it in the PHP toolkit, but they mustn’t have tested it, because it doesn’t work. We gave up.

  • #6983

    tect22

    Hope this helps.

    scriptId = ‘custitem_part_lookup’;

    $itemField->value = ‘test’;

    $customFieldList = new customFieldList();

    $customFieldList->customField = array($itemField);

    $ItemRecord->internalId = $ItemId ;

    $ItemRecord->customFieldList = $customFieldList;

    $updateRequest = new UpdateRequest();

    $updateRequest->record = $ItemRecord;

    $updateResponse = $service->update($updateRequest);

    ?>

You must be logged in to reply to this topic.