Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Using workflow to push the accontid to a hidden string field on the contact form

Posted on by

Hello,

I am trying to create a 1 to many relationship in PowerBI between Accounts and Contacts. However the users here deal with the same company (name) but different locations. So currently I cannot use the company name as my 1 to many as there are a lot of duplicates and I don't want my PowerBI report to crash if someone accidentally created a company with the same name in the future.

I currently created a string filed on my contact form and made this hidden. I created a work flow to pull data from the Account entity, but I am not sure how to pull a unique ID which only the parent has.

I did some research and I could create a hidden number sequence for all the account records, and they push that information in to the contact after. Just hoping there is an easier way.

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Using workflow to push the accontid to a hidden string field on the contact form

    Hi Zylawy,

    This would normally be achieved by writing out a custom workflow that populates that string field with the Account ID each time that field is interacted with, however, the Dynamics 365 workflow tools has a step in it that allows you to get the ID of an associated record, then use that record ID to populate the string field you've created: github.com/.../Dynamics-365-Workflow-Tools

    Instructions on how to use this step seen here: github.com/.../GetRecordID.md

    Give it a try and let me know if it helps.

  • Zylawy Profile Picture
    Zylawy on at
    RE: Using workflow to push the accontid to a hidden string field on the contact form

    Can you elaborate?

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Using workflow to push the accontid to a hidden string field on the contact form

    Hello,

    My Ultimate Workflow Toolkit contains step that can extract from reference passed Id of record and logical name.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans