RefreshData obsolete message

Hi,

Just checking/confirming - is the replacement for:
tPivotTable.RefreshData()

Now:
tPivotTable.PivotCache.Refresh()

?

The obsolete message says use PivotCache.RefreshData() so might be good to tweak that if so.

Thanks!

@devMailAndDeploy
Yes, you are right. Please use PivotCache.Refresh() instead, and you can use PivotTable.Refresh(null) too.
Note if you called PivotCache.Refresh() or PivotTable.Refresh(null), all related pivot tables based on this pivot cache will be auto calculated.