Reply
Contributor
k_marketing
Posts: 4
0
Accepted Solution

No 'edit date' information for Field History ??

1) I enabled Field History Tracking

2) I called getUpdated('ContactHistory', ...

3) retrieve('ContactId,Field,OldValue,NewValue', 'ContactHistory', ...

 

... but how can I get the date that the OldValue was changed into NewValue?

 

The info clearly exists - I can get it in a report, ex:

http://success.salesforce.com/questionDetail?qid=a1X30000000I8HZEA0

 

Appreciate any pointers.

 

Thanks

Moderator
SimonF
Posts: 7,984
0

Re: No 'edit date' information for Field History ??

You want the CreatedDate field (the date that row of history was created, which is when it was changed)

Cheers
Simon
docs | blog | twitter
Contributor
k_marketing
Posts: 4
0

Re: No 'edit date' information for Field History ??

Hi Simon

 

Darn it - that's exactly what I need.

 

I also need to start using describeSObject() since that clearly shows that field too ... I am misreading something or do the docs not have all the fields for "ContactHistory Object" (index section of http://www.salesforce.com/us/developer/docs/api/index_Left.htm) ?

 

Thanks !

Contributor
k_marketing
Posts: 4
0

Re: No 'edit date' information for Field History ??

Oh hey The Simon Fell ... big props on BeatBox too !!

Moderator
SimonF
Posts: 7,984
0

Re: No 'edit date' information for Field History ??

It looks like the docs sometimes include the standard audit fields and sometimes don't, i'll log a bug to clean that up, thanks for pointing it out.

 

Glad you've found beatbox useful.

 

 

Cheers
Simon
docs | blog | twitter
Contributor
k_marketing
Posts: 4
0

Re: No 'edit date' information for Field History ??

BB: very much so and thanks again, Simon!