0

I'm trying to find a way to adjust the date ranges in a Custom Report. I've been using simple_salesforce for all my other needs but for this i'm out of my element.

I tried to simply adjust the end date by doing the following, which explains what I'm going for, to no avail.

sf.Report.update('00R6P000008PR5SJEC',{'CloseDate': (datetime.date.today().replace(day=1) - datetime.timedelta(days=1)).strftime('%Y-%m-%d')})

All help is appreciated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.