web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Automating the Creation of a Related Connection

(0) ShareShare
ReportReport
Posted on by 50

I would like to have D365 Sales Hub automatically create a Connection in a specific circumstance.  This tenant has one Connection Role called "Introducer", and another Matching Connection Role called "Target".  So when a Contact or Account adds a Connection to another Contact or Account with Role=Introducer, the connected Contact/Account automatically gets Role=Target.  That part is working fine.  So far, so good. 

But if a Contact becomes an Introducer to another Contact, I would also like the initiating Contact to be an Introducer with respect to the receiving Contact's company.  Here is an example.  We open Bob's contact card and add a Connection to Jim with Role=Introducer.  Jim automatically receives Role=Target.  Jim works at Bigco, which is his Account Name in D365.  I want the system to automatically add a Connection between Bob (as Introducer) and Bigco (as Target).

I think the logic looks like this.  Adding a Connection to a Contact's record would trigger a D365 process that check's if the new Connection satisfies 3 requirements:

  1. it is a Connection to a Contact;
  2. the Connection has Role=Introducer; and
  3. the Contact that is the other side of the Connection, which now has Role=Target, has an associated Account Name.

If all three conditions are satisfied, I would like the system to create a new Connection between the initial Contact (as Introducer) and the second Contact's Account Name (as Target).  Alternatively, the process could trigger when any Contact is given a Role as Target, and if that Contact has an associated Account Name, then the system should create a new Connection between that Account (as Target) and the same Introducer.  The advantage of this alternate structure is that it only has to satisfy 1 condition instead of 3.  

Can anyone point me in the right direction?  Thanks!

I have the same question (0)
  • Suggested answer
    LuHao Profile Picture
    40,890 on at
    RE: Automating the Creation of a Related Connection

    Hi Gurs,

    Please create such a workflow.

    Entity is Connection, select right Scope, select Start When: Record is created.

    pastedimage1582893666039v1.png

    Add a step: Check Condition. Set the following conditions.

    pastedimage1582893776575v2.png

    Then add a step: Create Record.  Select Create: Connection

    Use Form Assistant to set {Company Name (Connected From (Contact))} for the field "Name" and select the field "As this role" as Target.

    pastedimage1582893874091v4.png

  • Gurs Profile Picture
    50 on at
    RE: Automating the Creation of a Related Connection

    First off, thanks so much for that detailed solution LuHao!  I really appreciate your time and the detail you provided.  The good news is that I followed your steps and was able to create the process, the process triggered when a new Connection was created, and the process indicates that it completed successfully.  The bad news is that despite that, the additional Connection was not created between the introducing contact and the target contact's company.  The only difference in my environment versus what I saw in your example is that my roles are called "Potential Introducer" and "Introduction Target" (I shorted the role names in my initial question for simplicity).  

    Here are some screenshots of what I did. First is creating the process conditions and connection:

    D365-Workflow-20200228_2D00_1_2D00_Process-Info.png

    D365-Workflow-20200228_2D00_2_2D00_Create-Connection.png

    Then I activated the process and added a Connection from the Contact named Testy DynamicsUser to the Contact named Targy McContact in role Potential Introducer.  Here is the result of process session:

    D365-Workflow-20200228_2D00_3a_2D00_Process-Sessions.png

    And here are the connects for Testy, Targy and Targy's company TestCo:

    1452.D365-Workflow-20200228_2D00_3c_2D00_Results-Contact-To.png

    0447.D365-Workflow-20200228_2D00_3b_2D00_Results-Contact-From.png

    8424.D365-Workflow-20200228_2D00_3d_2D00_Results-Company-To.png

    Then I deleted the connections and tried 2 other connection setups, but all had the same result (process indicated success, but additional connection was not made between Testy and TestCo):

    D365-Workflow-20200228_2D00_6_2D00_Create-Connection-Revised2.png

    D365-Workflow-20200228_2D00_4_2D00_Create-Connection-Revised.png

    I have no idea what I did wrong.  Can you spot my mistake?  Thanks again!

  • Gurs Profile Picture
    50 on at
    RE: Automating the Creation of a Related Connection

    I tried two other configurations for connection, but both had the same result:

    0410.D365-Workflow-20200228_2D00_8_2D00_Create-Connection-Revised3.png3124.D365-Workflow-20200228_2D00_9_2D00_Create-Connection-Revised4.png

    And then I manually created the second Connection, just so you could see what the desired outcome is (in case I didn't describe it clearly).  First I opened the Contact card for Testy and created a Connection to Targy in role Potential Introducer.  Then I manually created a second Connection from Testy's card (this one is the Connection I would hope the process would create automatically), this time to TestCo (which is Targy's company) in role Potential Introducer.  When done, here is how the Connections of Testy, Targy and TestCo look:

    D365-Workflow-20200228_2D00_10a_2D00_Desired-Results-Contact-From.png

    D365-Workflow-20200228_2D00_10b_2D00_Desired-Results-Contact-To.png

    D365-Workflow-20200228_2D00_10c_2D00_Desired-Results-Company-To.png

  • Verified answer
    LuHao Profile Picture
    40,890 on at
    RE: Automating the Creation of a Related Connection

    Hi Gurs,

    Thanks for the detailed description.

    I think I reversed the objects of the Introducer and Target.

    Please follow the screenshots below to modify the workflow. I have tested it and was able to successfully create the second connection.

    pastedimage1583144037822v1.png

    pastedimage1583144073520v2.png

    pastedimage1583144105746v3.png

    I forgot to fill in Connected From, so you saw the workflow execute successfully, but the connection was not created.

  • Suggested answer
    Gurs Profile Picture
    50 on at
    RE: Automating the Creation of a Related Connection

    @LuHao, it works!  You're the best!  Thanks so much.

  • LuHao Profile Picture
    40,890 on at
    RE: Automating the Creation of a Related Connection

    Hi Gurs,

    Don't forget to click Yes under "Did this answer your question?" to close this thread.

    Thanks.  :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 120 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 119

#3
Erin Lubben Profile Picture

Erin Lubben 66

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans