Absract fieldmap API
Bevan - April 24, 2009 - 21:20
| Project: | Salesforce |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
The Fieldmap API and UI that salesforce_api provides could be useful for other integrations where Drupal interacts with data objects on other 3rd party services, to create import/export scripts from, for example, CSV files, or conversion scripts, such as flexinode nodes to CCK nodes, CCK nodes to webform submission, etc.
Which parts could be abstracted into a more generic Fieldmap API on which Salesforce could be dependent?
I'm thinking;
* hook_fieldmap
* hook_fieldmap_*
* generic get functions for object structures, specific objects & fieldmaps
* caching of this data if it's from a remote party
* the fieldmap CRUD UIs.
* the mapping UI
* possibly more
Thoughts?

#1
node_import has a similar interface for mapping CSV columns to drupal object fields.
might be fruitful to take a look at node_import, but i don't have any concrete ideas for integrating / mimicking node_import functionality vis-a-vis salesforce.