There are contradictions in the Salesforce documentation (https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/getInteractionById.htm):

  • versionNumber
  • extras

Need to contacts Salesforce help desk for clarification.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

john_a created an issue. See original summary.

john_a’s picture

Assigned: Unassigned » john_a
john_a’s picture

Response from Salesforce:

Thank you for contacting Salesforce Marketing Cloud Support. My name is Lou Tsiros and I will be looking after your case. I do acknowledge that the documentation should be clearer in this regard on how to specify the parameters. I ended up reviewing the examples from this related section of the API guide with a similar endpoint call to search and retrieve all Journeys:

GET /interaction/v1/interactions
https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta...

Therefore, an example request using "versionNumber" and "extras" would be similar as follows:

https://www.exacttargetapis.com/interaction/v1/interactions/b817cdc7-98a...

I've added $params as an extra input in the function contract, and created a test to validate that the URL is as expected with this new parameter.

Expected results:

/core$ ../vendor/bin/phpunit --filter=MarketingCloudInteractionTest
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

Testing
.

Time: 3.05 minutes, Memory: 216.00MB

OK (1 test, 89 assertions)

Patch created, please review,

john_a’s picture

Status: Active » Needs review
john_a’s picture

Assigned: john_a » Unassigned
john_a’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies ok, and test passes:

/core$ ../vendor/bin/phpunit --filter=MarketingCloudInteractionTest
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

Testing
.

Time: 3.14 minutes, Memory: 216.00MB

OK (1 test, 89 assertions)
john_a’s picture

Status: Reviewed & tested by the community » Fixed
john_a’s picture

Status: Fixed » Closed (fixed)