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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How to use "HistoricFieldValue" in script?

ptc-4672719
1-Visitor

How to use "HistoricFieldValue" in script?

Hi,

I want to check longtext field with its history value.

For eg:

Field Name: Discussion

if(Discussion==HistoricFieldValue("Discussion","July 31,2012"))

Note: I can able to create a get the "Discussion" field history in report using the "HistoricFieldValue" computation. But in Script I cant.

Let me is there is any way to check the field?

-Shankar Daniel

1 REPLY 1

Hi,

what kind of script are we talking about ?

  1. a js-trigger skript to run on the server
  2. a client side batch script
  3. anything else.....? ? ?

Nevertheless in case of 1. and 2. you should try to fetch two whole Items (the "currentOne" and an "historicOne" ) using either the IssueBean(1.) the CLI or API (2.) and than get the "Discussion" field value from the two Items.

HTH Matthias

Announcements


Top Tags