Commodity Code Usage - Intergraph Smart Reference Data - Help - Intergraph

Intergraph Smart Reference Data REST API (10.2)

Language
English
Product
Intergraph Smart Reference Data
Search by Category
Help
Smart Materials/Smart Reference Data Version
10.2

To retrieve the usage of specific commodity code, use the following query:

GET {ServiceName}/CommodityCodes(<CommodtyId>)/Com.Ingr.SmartRD.V2.CommodityUsage.

The sample, query to retrieve the usage of the commodity code 107701, is:

GET https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects(%27SDB%27)/Disciplines(5020)/Nls(1)/CommodityGroups(5004)/CommodityParts(5453)/CommodityCodes(107701)/Com.Ingr.Srd.V2.CommodityUsage()/

Response

Parameter

Description

Type

Notes

Project

Retrieves the project details for the selected commodity code.

String

Spec Type

Type of the specification

String

SpecName

The name of the specification.

String

InterfaceName

The name of the interface.

String

LastTransferDate

The day when the item was last included or transferred in a job.

String

Date format: DD-MM-YYYY

If the response body is empty, the commodity code has not been used in any specification.

Sample response

{

"@odata.context":

"https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Com.Ingr.Srd.V2.CommodityCodeUsed",

"SpecUsage": [

{

"Project": "SDB",

"SpecType": "SDB_S3D",

"SpecName": "1C0101"

}

],

"CADUsage": [

{

"InterfaceName": "SP3D",

"LastTransferDate": "30-07-2015"

}

]

}