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
Hi,
I am not able to populate required inventory schema while creating the activity using Core API. I've added below section in request.
"requiredInventories": {
"items": [
{
"quantity": 1,
"inventoryType": "CIRCULATOR_PUMP"
}
]
Can someone please help.
Thanks
Shilpa
Comment
Hi Shilpa,
I just uploaded the curl in the link ( https://docs.oracle.com/en/cloud/saas/field-service/18a/cxfsc/op-rest-ofsccore-v1-activities-activityid-requiredinventories-put.html) and the JSON body looks like below
{
"items": [
{
"quantity": 3,
"inventoryType": "EC",
"model": "supercable-X200"
}
]
}
Can you try with this syntax structure & try?
Be the first to rate this
|
Sign in to rate this
HI Shankar,
"Set Required Inventories of activity" function is working as expected. Though, I am trying to set the required inventory in Create Activity request itself which is not working.
Thanks
Shilpa
Be the first to rate this
|
Sign in to rate this
Hi Shilpa, Are you using the REST Api or the inbound API? I can see any inventory object in the create activity Rest API call
Be the first to rate this
|
Sign in to rate this
Hi Shankar,
I am using REST API which doesn't have any inventory object in create activity request like you said. I thought this to be incorrect as SOAP inbound has that object. I don't understand the reason for two transactions just for activity creation and setting the required inventory.
Thanks
Shilpa
Be the first to rate this
|
Sign in to rate this
Hi Shilpa,
Aren't you looking for this?
https://docs.oracle.com/en/cloud/saas/field-service/18a/cxfsc/op-rest-ofsccore-v1-activities-activityid-requiredinventories-put.html
Regards,
Zsolt
Be the first to rate this
|
Sign in to rate this
Hi Zsolt,
This method need a seprate transaction. I am looking for method which is available in SOAP inbound/Activity API where required inventory can be populated while creating the activity.
Thanks
Shilpa
Be the first to rate this
|
Sign in to rate this
Clear, within Inbound API
https://docs.oracle.com/en/cloud/saas/field-service/18a/faisd/inbound-api-structures.html#c_Required_Inventories_Structure
Zsolt
Be the first to rate this
|
Sign in to rate this
I meant to say that I am looking for the same method in REST API which is already available in SOAP.
Thanks
Shilpa
Be the first to rate this
|
Sign in to rate this
Hi Shilpa, we need to make two calls in REST if you want to create inventory associated with Activity. There is no single REST API call which can do what SOAP inbound API call does. Alternatively you can put your request in ideas labs for Oracle to provide a single REST API like whereismytechnician which was earlier acheived by two calls
Average Rating:
100% (+1/-0)
|
Sign in to rate this