Field Service

Get Involved. Join the Conversation.

Topic

    Hussam Yousuf
    Adding Non-Serialized Inventory
    Topic posted July 25, 2017 by Hussam YousufRed Ribbon: 250+ Points, last edited September 16, 2018 by Erica (Leep) AndersonBlack Diamond: 60,000+ Points, tagged Inventory / Parts 
    108 Views, 5 Comments
    Title:
    Adding Non-Serialized Inventory
    Content:

    Hi all,

    I have a requirement for adding 'Required Inventories' to activities in bulk using APIs. The problem I am facing is that, using APIs while I try to update the Required Inventories in bulk, its asking for the Model Number. In this scenario, the Inventory which I am trying to add has no such properties. Is there a way to add Inventory to activities without a Model Number? The API says the Model number is mandatory when we try to update the Inventory in Bulk. Interestingly, when we do individual update for activities to add the Required Inventory, the update is done even when we keep the Model Number field blank.

    Kindly suggest me some solution.

    Thanks

    Hussam

    Comment

     

    • Hardik Gupta

      Hi Hussam,

      Model number is mandatory if the inventory is Non-serialized. Model number is set in the inventory types screen. You can select property from the drop down then populate the same via API.

      Eg: Model property is selected as Inventory item number(inv_item_number). This is a custom field created.

      Then via the API as we populate any other custom field the same way we populate this field "inv_item_number".

      You can create any field with inventory entity to use as model number

      Refer screen shot.

      Regards,

      Hardik Gupta

    • Hussam Yousuf

      Hi Hardik,

      I can't find any screenshots attached. Can you please share it again. Please help me understand, how can I add an Inventory called 'Weight' with only 'Quantity-kg' as the unit of measurement. I don't want to pass any other information through APIs such as Model Number or Serial Number, as it wont make sense here, as I am trying to add 'weight' as a required inventory, so that, i can stop loading the resources, once the resources do not have the 'Weight' required. I am doing this setup in order to manage the Capacity each Resource can carry. Based on the previous discussions in the Blog, Zsolt suggested this way of adding an Required Inventory named 'Weight' to the activities, so that it stops loading once the Resources are out of the inventory 'Weight' quantity.

      Thanks

    • Hardik Gupta

      Hi Hussam,

      Maybe the attachment did not get uploaded. Attaching it here. You will need to pass the model number for non serialised inventory. Let the model number be the same as the inventory id for which you will be using it for weights.

      Regards,

      Hardik Gupta

    • Hussam Yousuf

      Thanks Hardik,

      I will try working that way.

      Regards

      Hussam

    • Danette Beal

      Hi Hussam,

      If you were successful with Hardik's advice, please come back and mark his comment as best answer. This not only helps Hardik (who is an amazing FS expert) but also helps our other member searching for answers.

      Thanks in Advance!!

      Danette, Community  Manager