I am trying to connect to sales force using this module in D8. I was given a client ID and secret by my customer. Upon entering the client id and secret, I get an error saying, "Please enter a valid secret". Looking at the module source, it is expecting all numbers as the secret. The one given to me by my client was number and letters of mixed case.

The client is using Salesforce Marketing cloud so I am not sure if this module just doesn't work with marketing cloud or I was given an incorrect secret.

I went and registered on http://www.developerforce.com/events/regular/registration.php and created an test app that provided me with a valid secret this time. I was able to connect that way, but I am wondering if I am going down a rabbit hole with the module if it in fact does not support marketing cloud.

Side note: clicking the salesforce tab in webform (rc1) produces this error:

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\salesforce_mapping\MappedObjectStorage::loadByEntity() must implement interface Drupal\Core\Entity\ContentEntityInterface, instance of Drupal\webform\Entity\Webform given, called in /Applications/MAMP/htdocs/cbed/docroot/modules/contrib/salesforce/modules/salesforce_mapping/src/Controller/MappedObjectController.php on line 53 in Drupal\salesforce_mapping\MappedObjectStorage->loadByEntity() (line 83 of modules/contrib/salesforce/modules/salesforce_mapping/src/MappedObjectStorage.php).
Drupal\salesforce_mapping\MappedObjectStorage->loadByEntity(Object) (Line: 53)
Drupal\salesforce_mapping\Controller\MappedObjectController->getMappedObjects(Object) (Line: 67)
Drupal\salesforce_mapping\Controller\MappedObjectController->listing(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 576)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 153)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 657)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

rondog469 created an issue. See original summary.

aaronbauman’s picture

please try installing latest dev release

damienmckenna’s picture

Version: 8.x-3.0-rc7 » 8.x-3.x-dev

Is this the Exact Target system? I don't see any way of generating the necessary OAuth credentials from the Exact Target site, and my ExactTarget credentials don't work on the main login.salesforce.com site. Am I missing something? Thanks.

aaronbauman’s picture

I've never used marketing cloud or exact target

Have you been able to create an oauth app on marketing cloud?
https://developer.salesforce.com/docs/atlas.en-us.mc-app-development.met...

Reading through some docs, it looks like this product is separate from SFDC and salesforce core, so probably won't work with this module.

damienmckenna’s picture

Ok, that's what I was thinking - they're separate systems and so need a new integration suite. Thanks aaronbauman.

aaronbauman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

aaronbauman’s picture

In case you haven't found this already, for posterity: https://www.drupal.org/project/marketing_cloud