Skip to main content
lane_h
Helper ⭐️
Aug 1, 2017 2:10 PM UTC
Question

Deleting Usage Data

We are trying to reduce our SFDC Storage. To do so, we need to remove some Usage Data. However, our CSM team is a heavy user of the Usage Widget. We would like to removed data for Customers in a certain plan or even customers who have canceled prior to April of this year. 

This will require a JOIN of some sort in SOQL between JBCXM__UsageData__c and JBCXM__CustomerInfo__c or the Account record.

The issue is, I'm not sure what the query would look like. I've done some research, but every time I try, WorkBench throws an error.

Can anyone help?

4 replies

smorrisgainsightcom
Helper ⭐️⭐️⭐️
Aug 1, 2017 2:16 PM UTC
Hey Lane what error are you getting when trying to get this to work?  Feel free to shoot me an email if that's easier as well.
Translate
lane_h
lane_hAuthor
Helper ⭐️
Aug 1, 2017 3:51 PM UTC
Thanks Scott! I shot you an email. I'm getting a Malformed Query error.
Translate
Director of CX and Scale Programs
smorrisgainsightcom
Helper ⭐️⭐️⭐️
Aug 1, 2017 10:54 PM UTC
Awesome glad we were able to figure it out!
Translate
lane_h
lane_hAuthor
Helper ⭐️
Aug 2, 2017 1:22 PM UTC
Thanks Scott! 
Translate
Director of CX and Scale Programs