For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Hello,
We are trying to create new Resource Inventory using the API REST, but when we send the data, the fields Quantity, InventoryType, Inventory model (Custom field) are shown as empty on TOA Resource Inventory interface.
We are following the documentation:
https://docs.oracle.com/cloud/august2017/fieldservicecs_gs/CXFSC/op-rest-ofscCore-v1-resources-%7BresourceId%7D-inventories-post.html
A new register containing the resource inventory is created to the Resource, but the quantity field only shows the value: 1, different of the original sent value, the other fields empty.
Someone can help?
Thanks in advance
Comment
Hi Wagner,
Just some tips:
- quantity reason can be if the equipment is serialized;
- first try to add the same equipment on Manage for a Resource, maybe some equipment configuration is missing.
Newest documentation can be found https://docs.oracle.com/en/cloud/saas/field-service/18b/cxfsc/op-rest-ofsccore-v1-resources-resourceid-inventories-post.html
Regards,
Zsolt
Be the first to rate this
|
Sign in to rate this
Hi Wagner,
I think you might be making a small mistake somewhere in your request.
Please try the following request. I have just tried and it is working correctly.
"inventoryId": 2,
"status": "resource",
"inventoryType": "cables",
"quantity": 3,
"resourceId": "1101",
"resourceInternalId": 4,
"links": [
{
"rel": "canonical",
"href": "https://api.etadirect.com/rest/ofscCore/v1/inventories/2"
},
{
"rel": "describedby",
"href": "https://api.etadirect.com/rest/ofscCore/v1/metadata-catalog/inventories"
}
]
}
Be the first to rate this
|
Sign in to rate this
Regarding the quantity - quantity other then 1 is only available for "non-serialized" inventory. Please make sure that you have resource type properly configured.
Also, general recommendation - create inventory manually and use Get resource inventories to read the inventory form OFSC. The response to the get call will provide a good idea what would be a proper payload for "Create Inventory".
BTW What is "TOA Resource Inventory interface"?
Be the first to rate this
|
Sign in to rate this