Closed (won't fix)
Project:
Salesforce Suite
Version:
7.x-3.x-dev
Component:
salesforce_mapping.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2013 at 10:35 UTC
Updated:
21 Feb 2026 at 19:35 UTC
Jump to comment: Most recent
Comments
Comment #0.0
nicodv commentedCorrect the word "Sealsforce"
Comment #1
nicodv commentedMy case is: since I don't see an option for custom SOQL queries, and therefore I cannot filter the attachment imports (if I map against Attachment object I'd import hundreds or thousands of files into the site on the first cron run) what's the way to do this? Should I use the previous version of the module?
thanks
Comment #2
kostajh commentedAs you've noticed this isn't supported in the module currently, and I'm not sure there are plans to as it would be fairly complex to implement.
The simplest way would be writing a custom module that leverages the core Salesforce module and/or the hooks documented in salesforce.api.php. Alternatively you could write a patch to Salesforce Mapping module that would implement a "linked" mapping between two objects.
Comment #3
nicodv commentedIm trying to make a simple attachment import but it,s not happening, this error is stoping imports
MESSAGE Invalid data value given. Be sure it matches the required data type and format. Processing failed for entity associated with Salesforce Object ID: xxxxx
Im just mapping sf's body to drupal's image file plus the other required sf fields... Btw: i can map a node's image field to a sf attachment, right? Or must i map drupal file object instead of an image field of a node?
thanks for your help
Comment #4
nicodv commentedCould someone help me a bit with this? I finished my project almost a week ago and I cannot find the way to import attachments. The type and format issue pops up every time I try to import an attachment or data from a Salesforce's URL type field.
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 744 of /home/xxx/public_html/sites/all/modules/entity/includes/entity.wrapper.inc).
...being line 744:
public function set($value) {
if (!$this->validate($value)) {
throw new EntityMetadataWrapperException('Invalid data value given. Be sure it matches the required data type and format.');
}
Hope you can point me in the right direction.
Thanks in advance
Comment #5
kostajh commentedAttachment imports don't work. There needs to be a conversion between the "file" type of a Drupal file attachment and the attachment format used by Salesforce.
A related issue is linking multiple entities together, because if an attachment is added to a Contact, the attachment field is not available in the SF Mapping interface - you have to set up a mapping between a Salesforce Attachment and a Drupal object to get the field, which means you need a way to link the two mappings so that one Drupal entity syncs with two Salesforce objects (Contact and Attachment).
Comment #6
nicodv commentedthanks for the help. is that possible? i mean to map 2 drupal objects to one sf?
also, is there a plan to fix this in the module?
thanks again
Comment #6.0
nicodv commentedtext corrections
Comment #7
aaronbauman7.x is no longer supported