Postponed (maintainer needs more info)
Project:
Salesforce Webform Data Integration
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
27 May 2010 at 19:32 UTC
Updated:
15 Apr 2015 at 18:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
obsidiandesign commentedLooking through some old code, the Campaign ID field was removed from the default field list. The correct field key is Campaign, not Campaign_ID, even though you are storing the ID.
So, in Site configuration -> Salesforce Webform, enter in the following key pair:
Campaign|Campaign ID
That will allow you to use the pairing on your webform.
Bryan O'Shea
Obsidian Design
Comment #2
obsidiandesign commentedLooking through some old code, the Campaign ID field was removed from the default field list. The correct field key is Campaign, not Campaign_ID, even though you are storing the ID.
So, in Site configuration -> Salesforce Webform, enter in the following key pair:
Campaign|Campaign ID
That will allow you to use the pairing on your webform.
Bryan O'Shea
Obsidian Design
Comment #3
koitsenko commentedThanks for the response. I tried the suggested solution but no joy. I also tried commenting out the
'Campaign' => 'Campaign_ID',
in salesforcewebform_fields.inc, and leaving the custom key pair, but no success here either.
Lastly I tried using the custom field support module described in this post:
http://drupal.org/node/760770
When i have this enabled I don't see Campaign as a field key at all.
Were you able to successful test using the custom key/description?
Best regards,
Shawn
Comment #4
obsidiandesign commentedShawn,
What value are you inserting into the Campaign_ID field? I'm wondering if there's a problem just with the value you're trying to submit.
Bryan O'Shea
Obsidian Design
Comment #5
koitsenko commentedI'm putting in the SFDC campaign id, 701A0000000TvvW, which I've grabbed from the salesforce URL. See attached screenshots.
Shawn
Comment #6
koitsenko commentedI switched to the DEV version of the module and received the message 'Invalid foreign key relationship name Campaign' error.
I tried switching the mapping from
Campaign|Campaign_ID to CampaignMember|Campaign_ID
which runs without giving errors, but doesn't actually add someone to a campaign. I'm not familiar with the how the relationships work between leads and campaigns so I'm a bit stumped.
Shawn
Comment #7
minhtao commentedI have a very similar issue to solve.
I am actually intereted in knowing the answer.
Tao
Comment #8
obsidiandesign commented@koitsenko - I honestly don't know. I'm not a big SF user (I just developed the module for someone who is), so I'm not sure how to debug that error. I would recommend contacting SF support, it may be something simple in the value you're providing to SF.
Bryan O'Shea
Obsidian Design
Comment #9
obsidiandesign commentedChanging to a support request, since it's a specific use case.
Comment #10
tvu007007 commentedShawn, was this issue ever resolved. You may want to check if the settings for the campaign field in SFDC is set properly. I am curious to what fixed it?
Comment #11
tcampbell commentedAny resolution to this? I'm running into the same issue.
Comment #12
obsidiandesign commentedPlease take a look at: http://boards.developerforce.com/t5/NET-Development/Invalid-foreign-key-....
It seems that assigning a Campaign to a lead through the API is a two-step process: 1) create the lead, then 2) use a CampaignMember object in order to link the lead back to the campaign. That is currently outside the capabilities of this module. I'm not sure yet what changes would be required to implement such a process.
Bryan O'Shea
Obsidian Design
Comment #13
derekwebb1 commentedThis issue is still occurring as far as I can tell. Anyone find a resolution yet?