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 :
Finance | Project Operations, Human Resources, ...
Suggested answer

CustTable Relation

(0) ShareShare
ReportReport
Posted on by 32

Hello everyone.

I have a task to create "AR rep responsible" field on the Customer Form, allowing user to assign AR representative to a specific customer.
I took "Employee Responsible" field in the CustTable table as an example and mimicked the relationship with HcmWorker table the same way (Foreign Key), which created HcmWorker field in CustTable table for me with RefRecId as extended data type.

pastedimage1597156914621v1.png

I then added Reference group to CustTable form and connected to newly created field (HcmWorker) with Replacement Field Group set to Person, which produced the desired effect allowing employee selection on the form (I added it to Sales Demographics tab).

pastedimage1597157143453v2.png

pastedimage1597157571922v4.png

The issue I'm having is that I cannot see my newly created field in the Customer Pool Selection criteria and even though I followed Employee Responsible example something isn't working for me here.

pastedimage1597157224849v3.png

When I try to look at Employee Responsible filed in the drop down I cannot find it as well as it referenced like this: Employee responsible (Record-ID)
pastedimage1597157751136v5.png


Any ideas on what I'm doing wrong or didn't do enough would be greatly appreciated.
Please ask any questions if I couldn't explain the issue correctly. 

Thank you,

Alex

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: CustTable Relation

    To me it appears to be working correctly. The replacementGroup is used on the form, but in the query criteria it shows the RecId field. I assume it works exactly the same for the HcmWorker field that you used as an example. Am I correct?

    Also, in the lookup for "Employee responsible (Record-ID)" - do you see a list of employees? I assume you do. So users can select an employee from the lookup, and use it as query criteria. Is this correct?

    If answer to both is Yes, then I don't see any problem in how it works.

  • Alex Nach Profile Picture
    32 on at
    RE: CustTable Relation

    Hi Nikolaos.

    Yes, on the form it works correctly and data is stored as RecId in the CustTable. I can come back and change AR rep field and save it.

    But in the Customer Pools form, when I select criteria for a specific pool, I don't see my "AR rep responsible" field. I click Add to the Range and cannot find my field. I tried to follow Employee responsible (Record-ID), which comes from MainContactWorker field (and relations I copied from) and added AR rep responsible (Record-ID) but it displays error.

    pastedimage1597162888189v1.png

     Employee responsible (Record-ID) does display list of employees as you said and I would like my AR rep field follow the same.

    Thanks,

    Alex

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: CustTable Relation

    Ah, sorry, I misunderstood your description. What is the label of your AR responsible field? The field name in the query lookup comes from the field label.

  • Alex Nach Profile Picture
    32 on at
    RE: CustTable Relation

    No worries. It's hard to convey everything over in the post.

    Label: AR rep responsible

    Field Name: HcmWorker

    Table: CustTable

    Thank you.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: CustTable Relation

    Did you add this field in your new table relation?

    By the way, you should always use your own prefix with your extensions, also in the new field name. Otherwise some future MS update could fail to install - and also cause data issues for you.

    docs.microsoft.com/.../naming-guidelines-extensions

  • Alex Nach Profile Picture
    32 on at
    RE: CustTable Relation

    Yeah, I usually do. This was my 100 times trying to rebuild relationship with HcmWorker so I didn't bother lol. I just want this to work finally and then I can rename and do all cosmetics.

    Here's the relation:

    pastedimage1597166669555v1.png

    pastedimage1597166697671v2.png

    I was thinking, maybe my relation is not good? But then again, I followed exactly how MainContactWorker field is (Employee Responsible).

    By the way. If I create regular (int, string) field in CustTable, I'm seeing it in Customer Pool Criteria selection without any problems. Something is missing, I just don't know what.

    I apologize if I'm doing something completely wrong here, I'm couple of months into D365FO development only.

    Thanks,

    Alex

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: CustTable Relation

    When you have many relations to the same table, I think you might need to define RelatedTableRole property on the relation (it's just freetext). But I don't think that is has impact here.. But at least something to check.

  • Alex Nach Profile Picture
    32 on at
    RE: CustTable Relation

    I"ll check Nikolaos. Thank you.

    By the way. If I create regular (int, string) field in CustTable, I'm seeing it in Customer Pool Criteria selection without any problems. Something is missing, I just don't know what.

    Alex

  • Alex Nach Profile Picture
    32 on at
    RE: CustTable Relation

    Nikolaos.

    I added RelatedTableRole as you suggested and as you thought it didn't help.

    pastedimage1597170439653v1.png

    I do see field when going into "Advanced filter or sort" in the CustTable form.

    pastedimage1597170594080v2.png

    If i use drop-down I even see AR rep responsible (Record-ID).

    pastedimage1597170636146v3.png

    but still no luck with the Customer Pool Criteria selection

    Thanks,

    Alex

  • vinitgoyal2005 Profile Picture
    6,332 on at
    RE: CustTable Relation

    Hi Alex,

    Can you please try doing reset usage data and see if it works?

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 756 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 678

#3
Martin Dráb Profile Picture

Martin Dráb 526 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans