Question

REST API ProdStructureSet BomType

  • 19 December 2023
  • 2 replies
  • 54 views

Badge +1

Hi all,

 

I can’t seem to figure out how to use the “ProdStructureSet by key”. I get the following error when I try to fill out the BomType using either 'Manufacturing' or IfsApp.ProductStructureHandling.ShopOrdCode'Manufacturing'

{
"error": {
"code": "ODATA_PROVIDER_ERROR",
"message": "An internal server error occurred. Contact administrator.",
"details": [
{
"code": "INVALID_KEY_PROPERTY",
"message": "The key property 'BomType' is invalid."
}
]
}
}

Here’s an example of what the url looks like

domain/int/ifsapplications/projection/v1/myprojection.svc/ProdStructureSet(AlternativeNo='*',BomType=IfsApp.ProductStructureHandling.ShopOrdCode'Manufacturing',Contract='contract',EngChgLevel='1',PartNo='somepartno',LineItemNo=1).

 

Any help will be appreciated. 🙂


2 replies

Userlevel 7
Badge +19

You need to reference the projection you have. I guess it is not called “myprojection” but something else? If you have modeled “myprojection” like in ProductStructureHandling it shall be:

IfsApp.”Myprojection”.ShopOrdCode'Manufacturing'

If not you can check the odata documentation found in the API explorer for that projection.

Badge +1

Ah thank you Thomas.

I got it working with ProductStructureHandling.svc now just for testing.

Reply