Skip to main content
Question

REST API ProdStructureSet BomType

  • December 19, 2023
  • 2 replies
  • 103 views

Forum|alt.badge.img+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

Forum|alt.badge.img+21
  • Superhero (Employee)
  • 500 replies
  • December 19, 2023

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.


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 1 reply
  • December 19, 2023

Ah thank you Thomas.

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