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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

replacement key index

(1) ShareShare
ReportReport
Posted on by 1,987
Hi,

I created a table with the following fields:

Number    Id       codeX      codeY      Field1
------        ---      -------      -------     --------
1               id1     codex1     codey1      fieldz
2               id2     codex1     codey1      fieldz
 
Index with duplicate = No, is the field 'Number' and this index is the replacement key

now in SalesLine, i created a new recId field that has a relation with the recId from the table above.

i added this field in salesTable form as a reference group, and i overrided the lookup method to return  codeX, Id, codeY and Field1 only

The lookup seems to work fine, however when i type in the field to filter values for codeX, like typing codex1, it doesn't return anything. But if i type in the field the value "1" which is the number field, then it returns results for codeX. (even though number field doesn't appear in the lookup)

I suspect the issue is because of the index replacement key

So I created a new index with codeX, Id, codeY and Field1, and made this one the replacement key instead. Now when i type values for codeX, the filter works but now when i choose a value, the value appears combined with the 4 values of the 4 fields. Can I only see codeX after i choose a value instead of the 4 values?
Categories:
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
    You could create a field group with CodeX only and use it as the replacement group, but it doesn't make a good sense, because CodeX isn't a unique identifier of records in your table. You should think again about your business requirements and change your design in some way.
  • .. Profile Picture
    1,987 on at
    Hi Martin,

    thanks it works. I added the other related fields in the line details tab, so the field group as CodeX alone worked.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans