Problem/Motivation

When using several business units the account id can be provided to generate an access token contextual to a given BU instead of the one that created the integration.

Official docs: https://developer.salesforce.com/docs/atlas.en-us.mc-app-development.met...

Proposed resolution

Expose optional account id and scope that can be pushed through.

Patch coming up

CommentFileSizeAuthor
#5 3193522-5.patch5.37 KBjohn_a
#2 3193522-2.patch4.63 KBpcambra

Comments

pcambra created an issue. See original summary.

pcambra’s picture

Status: Active » Needs review
StatusFileSize
new4.63 KB
pcambra’s picture

Issue summary: View changes
pcambra’s picture

john_a’s picture

StatusFileSize
new5.37 KB

Many thanks for the patch pcambra. The tests failed due to incorrect assignment of '' to an integer in marketing_cloud.settings.yml, this should have been account_id: 0.

We'll also need a hook_update() to add the new config variables to existing instances. I've created a new patch with these changes. There will almost certainly be a merge conflict with #3195685, but I can sort that out further down the track.

john_a’s picture

Patch applied to 8.x-1.x-dev, marking this as ready

john_a’s picture

Status: Needs review » Reviewed & tested by the community

  • john_a authored 28c0893 on 3193522-support-scope-and-account-for-bu
    Issue #3193522 by pcambra, john_a: Support scope and account id for BU
    
  • john_a authored 8a7f8da on 3193522-support-scope-and-account-for-bu
    Issue #3193522 by pcambra, john_a: Support scope and account id for BU
    
  • d04e7ac committed on 3193522-support-scope-and-account-for-bu
    Revert "Issue #3193522 by pcambra, john_a: Support scope and account id...

  • john_a authored 28c0893 on 8.x-1.x
    Issue #3193522 by pcambra, john_a: Support scope and account id for BU
    
  • john_a authored 8a7f8da on 8.x-1.x
    Issue #3193522 by pcambra, john_a: Support scope and account id for BU
    
  • d04e7ac committed on 8.x-1.x
    Revert "Issue #3193522 by pcambra, john_a: Support scope and account id...
john_a’s picture

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

Assigned: pcambra » Unassigned

Status: Fixed » Closed (fixed)

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