I am using a Salesforce developer account to integrate to my Drupal 7 instance. I have enabled the Salesforce API, Salesforce Mapping, Salesforce Pull and Salesforce Views sub-modules.
I was able to successfully authorize through OAuth:
Your Salesforce instance is authorized and has access to the following resources:
tooling: /services/data/v27.0/tooling
async-queries: /services/data/v27.0/async-queries
query: /services/data/v27.0/query
chatter: /services/data/v27.0/chatter
commerce: /services/data/v27.0/commerce
wave: /services/data/v27.0/wave
search: /services/data/v27.0/search
identity: https://login.salesforce.com/id/XYZ/XYZ
sobjects: /services/data/v27.0/sobjects
serviceTemplates: /services/data/v27.0/serviceTemplates
recent: /services/data/v27.0/recent
connect: /services/data/v27.0/connect
licensing: /services/data/v27.0/licensing
I was also able to map a content type with the Salesforce contact object.
However, when I try to pull the contacts from Salesforce by running Cron I get the following error:
SalesforceException: The requested resource does not exist in
Salesforce->apiCall() (line 157 of /sites/all/modules/salesforce/
includes/salesforce.inc).I can see the list of resource available from Salesforce using drush sf-list-resources
tooling /services/data/v27.0/tooling
async-queries /services/data/v27.0/async-queries
query /services/data/v27.0/query
chatter /services/data/v27.0/chatter
commerce /services/data/v27.0/commerce
wave /services/data/v27.0/wave
search /services/data/v27.0/search
identity https://login.salesforce.com/id/XYZ/XYZ
sobjects /services/data/v27.0/sobjects
serviceTemplates /services/data/v27.0/serviceTemplates
recent /services/data/v27.0/recent
connect /services/data/v27.0/connect
licensing /services/data/v27.0/licensingI can also see that the Salesforce contact object is accessible using drush sf-describe-object contact
Name Contact
Fields 48
Child Relationships 35
Searchable TRUE
Creatable TRUE
Deletable TRUE
Mergeable TRUE
Queryable TRUEHow can I fix this exception?
UPDATE: Please see attached screenshot of my Salesforce Contact Mapping
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | salesforce_contact_mapping.png | 555.97 KB | tsega |
Comments
Comment #2
aaronbaumanCan you provide a dump of your Contact mapping?
Comment #3
tsega commentedHere is an export of my Contact mapping:
Comment #4
aaronbaumanYou need to enable at least one action trigger.
Comment #5
tsega commentedI tried enabling each one individually and all three all together but the result is the same, when I run drush cron
I also tried to add a Contact ID text field to my Salesforce Contact content type so I can map the Contact Id from Salesforce and set it as the key. However, I get the following error on submission:
Comment #6
tsega commentedDespite the error that I got it seems like the contacts are being pulled in. Thanks for your help @aaronbauman and for this very handy module.
Comment #7
aaronbaumanMaybe you have some other mappings which are causing this error?
Comment #8
aaronbauman7.x is no longer supported