Skip to main content
modified `@restforce` to `client` to fit better with general restforce docs
Source Link
Huw
  • 275
  • 4
  • 14

Thanks to @sfdcfox for his comment above - turns out the Last Modified header appears to be there for global describe.

so a simple restforce call:

@restforceclient.get("/services/data/v37.0/sobjects")['Last-Modified']

Gives me a datetime formatted as a string, but i can use response.to_datetime to do a comparision against something stored in local database - awesome!

Thanks to @sfdcfox for his comment above - turns out the Last Modified header appears to be there for global describe.

so a simple restforce call:

@restforce.get("/services/data/v37.0/sobjects")['Last-Modified']

Gives me a datetime formatted as a string, but i can use response.to_datetime to do a comparision against something stored in local database - awesome!

Thanks to @sfdcfox for his comment above - turns out the Last Modified header appears to be there for global describe.

so a simple restforce call:

client.get("/services/data/v37.0/sobjects")['Last-Modified']

Gives me a datetime formatted as a string, but i can use response.to_datetime to do a comparision against something stored in local database - awesome!

Source Link
Huw
  • 275
  • 4
  • 14

Thanks to @sfdcfox for his comment above - turns out the Last Modified header appears to be there for global describe.

so a simple restforce call:

@restforce.get("/services/data/v37.0/sobjects")['Last-Modified']

Gives me a datetime formatted as a string, but i can use response.to_datetime to do a comparision against something stored in local database - awesome!