Hello,
We’re trying to get the Salesforce.com Adapter to work in a similar fashion as the seperate data loader tool.
In the data loader, we just supply a specific business key (a customer key, company code, etc) but do not supply the Internal ID code that SFDC (=SalesForce Dot Com) uses.
SFDC automatically detects if a record is new (insert) or already exists - and then update its information (Update). So under water, the data loader tool must trigger the UPSERT() command in the Salesforce API.
However, in our test environment we tried to get the BODS SFDC Adapter to behave the same way but here are our findings:
- If we leave the internal ID field empty, we get an error.
- If we populate the Internal ID field with something, along with the other attributes in our table, it works. SFDC actually insertst the record.
- If we run the DF again, we get a “Duplicate key” error - which makes perfectly sense but how do we get it to USPERT / Update the record?
(and before someone asks, no the SFDC Adapter does not have the auto correct etc options like a database table object would have)
We are currently on BODS 12.2.3.2 - so our SalesForce.com Adapter only supports API 16.
However, upon checking the SFDC API documentation, UPSERT() has been around since API 7 so API 16 should definitely support it.
We know that BODS 12.2.3.3. actually contains an update of the Salesforce.com Adapter which allows us to only supply partial tables - rather than having to supply ALL fields in a table when loading data into SFDC. But I am not sure how this relates to our problem - certainly people have been using the Salesforce.com adapter succesfully BEFORE 12.2.3.3?
I’ve put this post in this section because I believe we need some help in designing our DFs to do what we need. It is not a connectivity issue as our Salesforce.com adapter is working fine - it can talk to SFDC just fine but for some reason we cannot get it to ‘behave’ the way we want to.
And while the documentation that comes with BODS is excellent - the section on the SalesForce.com Adapter is very very thin indeed and mostly focussed around installing and configuration, but not actual usage.
Anyone here that has been using the Salesforce.com adapter to insert and update records? We’d love to hear from you
ErikR (BOB member since 2007-01-10)