Question about salesforce source connectors: do we...
# replication-troubleshooting
y
Question about salesforce source connectors: do we support to pull only the latest data ? Right now, the full refresh mode seems still pull everything including historical update. It seems to me pulling historical update has already been covered by incremental mode (we could always omit the state input). Why can’t we change the full refresh mode only pull the latest ?
m
Well, it should ignore the state. I've tested this behaviour before and it does just that. Did it change? Can you post an example of it not working please?
y
@Marcelo Pio de Castro so how is the full refresh mode configured ? Through the configured catalog input ?
m
Yes, state is only used for incremental, because only incremental sends state messages usually
y
Looking at the code, it seems Saleforce connector does not use that at all.
It choose incremental and full refresh based on the replication key ?
m
State is generated on the super()
As Salesforce is using the cdk
It is generally the cursor_field that is put on the state (can be different, for example dataverse do not use the cursor field on the state)
It is indeed the replication_key in the case of Salesforce
y
But for the code link I sent, the stream type has been decided based on what properties are included.
I ll read the code a bit more.
Thanks