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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

LongDescription.PlainText

rleir
17-Peridot

LongDescription.PlainText

Hi team

Is the CR field 'Long Description.Plain Text' available via ODATA?

It should show up in this:

domain.com/Windchill/netmarkets/html/wrs/doc.html
domain.com/Windchill/servlet/odata/v5/ChangeMgmt/ChangeRequests?$count=false

but I see only the old fields Name, Number, Description etc.

 

My program GETs this:

 

domain.com/Windchill/servlet/odata/v5/ChangeMgmt/ChangeRequests/PTC.ChangeMgmt.MS2ChangeRequest?$count=false&$select=Number,Name,Long%20Description.Plain%20Text,Long%20ProposedSolution.Plain%20Text,LastModified

 

The response is 

400 {"error":{"code":null,"message":"The property 'Long', used in a query expression, is not defined in type 

Do I need to customize the WRS fields? There was a PTC presentation on customizing WRS fields, but now I cannot find it.

thanks

Rick

3 REPLIES 3
rleir
17-Peridot
(To:rleir)

 

There is 'How to create Custom Domain in Windchill Rest Services'


https://www.ptc.com/en/support/article/CS357344

jukka
7-Bedrock
(To:rleir)

You should use attributes internal names = no spaces in names. 

rleir
17-Peridot
(To:jukka)

QueryBuilder allows me to add a field longDescription.formattedText or longDescription.plainText. 

WRS does not:

domain.com/Windchill/servlet/odata/v5/ChangeMgmt/ChangeRequests?$select=longDescription.formattedText&$count=false
"error": { "code": null, "message": "The part 'longDescription.formattedText' is not defined." }

 Nor can I 'expand' longDescription in WRS.

What I really want from WRS is the field longDescription.plainText.

cheers -- Rick

Top Tags