cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Get Multiple Parts Description in a single REST API

pshashipreetham
17-Peridot

Get Multiple Parts Description in a single REST API

Hi,

I am using the following REST API:

var WindchillData = Things["OData-connector"].getPartStructure({
        $expand: "Components($expand=Part($select=Name,Number,Version),PartUse,Occurrence;$levels=1)",
        ID: "VR:wt.part.WTPart:XXXXXXXX"
    });

As of now, I can only pass one ID. Can I pass multiple part ids in the ID field?

 

Thanks,

 

Shashi Preetham
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @pshashipreetham 

 

As far as I know, we cannot do anything on the Thingworx side.

 

You can check with your Windchill development team to create a custom API for your requirement. That might solve performance issues.

 

/VR

 

View solution in original post

3 REPLIES 3

Hi @pshashipreetham 

 

I think it is not possible. PartID is part of the URL it won't support multiple values

 

Velkumar_0-1686644132827.png

 

/VR

Hi @Velkumar ,

 

Thanks for the quick response. If I want to get a Part Structure, it takes at least 5 secs. If I need to call for 40 Parts, it will take 200secs that would be around 3-4 minutes. This gives me a performance issue.

 

Thanks,

Shashi Preetham

Hi @pshashipreetham 

 

As far as I know, we cannot do anything on the Thingworx side.

 

You can check with your Windchill development team to create a custom API for your requirement. That might solve performance issues.

 

/VR

 

Top Tags