Skip to main content
17-Peridot
August 22, 2022
Question

LongDescription.PlainText

  • August 22, 2022
  • 2 replies
  • 1176 views

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

2 replies

rleir17-PeridotAuthor
17-Peridot
August 22, 2022

 

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


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

10-Marble
August 22, 2022

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

rleir17-PeridotAuthor
17-Peridot
August 23, 2022

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