Vendor purchase "Purchase" button is disabled?

Claire Ashdown2
Giga Guru

I am trying to use the Hardware Inventory Stock Order catalog item in a test environment. I have generated the "Source Request Items" catalog task, however when I use "Source request" in the Hardware Asset Workspace to fulfill the request, the Vendor purchase "Purchase" button is disabled. Troubleshooting through UI Builder, I found that the Purchase button for vendor purchase will be greyed out unless com.snc.sn_spend_asset ("Asset Management Integration for Sourcing and Procurement Operations") is enabled and the user has the sn_spend_asset.spo_shopper role. This data for whether the button will be selectable or not (this plugin and role check) is retrieved through ProcSourceRequestManager.getRequestItemsForWorkspace(input.requestId).

 

Am I understanding correctly that having HAM alone will not allow you to create a Vendor PO through the Hardware Inventory Stock Order catalog item, you must also have Asset Management Integration for Sourcing and Procurement Operations? So essentially, with HAM alone, the Vendor purchase "Purchase button" will be visible but completely unusable?

 

This is similar to https://www.servicenow.com/community/ham-forum/sourcing-task-vendor-purchase-button-not-working/m-p/... except it is using the Hardware Inventory Stock Order catalog item, not an individual model published to the catalog. I tried the solution to ensure the product model's manufacturer company record had Vendor set to true, and that did not make the "Purchase" button available.

4 REPLIES 4

fknell
Tera Patron

Does Sourcing from a stockroom work? 

Could you please share the hardware model and its configuration that you’re trying to source? 

I have not tried from a stockroom yet. It's a custom model we created, not an OOB one.

OK, can you share the hardware product model, especially if it's an individual one? I assume configuration is missing to source the model.

Claire Ashdown2
Giga Guru

@Sean_Walker  -- Hi Sean, I am trying to follow along with your excellent video on sourcing a hardware asset request submitted by the Hardware Inventory Stock Order catalog item: https://www.youtube.com/watch?v=e1bcXPtO6zI&list=PLkGSnjw5y2U4MVzsIHSsDG0EC_zvsgOvY&index=22. However, the Purchase button is greyed out in our Zurich instance (sn_hamp on both 13.1.0 and 15.0.0). That video appears to be on Vancouver, and I'm wondering if there has been a change since then.

 

When I look at the code behind what allows the Purchase button on the /now/hardwareassetworkspace/source_request/sys_id page to be selectable, it appears to require com.snc.sn_spend_asset ("Asset Management Integration for Sourcing and Procurement Operations") to be enabled and the user to have the sn_spend_asset.spo_shopper role. I checked the product documentation here (https://www.servicenow.com/docs/r/it-asset-management/hardware-asset-management/create-inventory-sto...), and it discusses needing to ensure the catalog item is tied to a hardware model and vendor. However when I look at the code through ProcSourceRequestManager.getRequestItemsForWorkspace(input.requestId), I see that it determines that Purchase can be selectable if ritm.hasVendors is true, which is set by 

 this.isSPOcheckoutEnabled(item) || (new AssetUtils()).hasVendors(item.cat_item.model). So it makes sense that an individual model published to the catalog would be fine. But I'm trying to understand the Hardware Inventory Stock Order page, which then seems like it requires isSPOcheckoutEnabled to return true (the checks for com.snc.sn_spend_asset and sn_spend_asset.spo_shopper that I mentioned above).
 
Am I understanding the dependency correctly in order to have the Purchase button selectable when using the Hardware Inventory Stock Order catalog item and flow? Is this dependency documented anywhere I can reference? I've looked through everything I can find in the Ranger videos and Product Documentation and am just having trouble finding it.