Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to locked lookup field in d365fo

(0) ShareShare
ReportReport
Posted on by 16
Hi all,
 
Can anyone pls let me know, how we can lock lookup field? 
For example- Suppose
I have 2 lookup fields 
 
InventLocationIdFrom
 
InventLoctionIdTo
 
So, based on InventLocationIdFrom the value is displaying on InventLocationIdTo.
 
For example-
InventLocationIdFrom - 104096
 
InventLocationIdTo - 101107, 22095,134567
 
So, here in Inventlocationidto I like to lock the lookup so that user only can see the values. Nothing more than this. I mean they cant do the clear button to clear at all.
 
Kindly let me know how to acheive this?
 
 
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,074 Super User 2025 Season 1 on at
    How to locked lookup field in d365fo
    Hi,
     
    The InventLocationID is representing a warehouse. Can you tell how these warehouses are linked for valid options? Would it be possible to use sites to separate which warehouses are linked to each other? 
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    How to locked lookup field in d365fo
    One more option will be creating an intermediate table. Insert all the InventLocationIdTo values to that table and build the query based on that table.
     
    Thanks,
    Girish S.
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    How to locked lookup field in d365fo
    Hi,
     
    I am assuming you have added the lookup for InventLocationIdTo field and add the ranges to it. In addition to the range add the range status to Locked, so that user cannot clear the ranges and it will hidden from the user.
    Refer to the below blog.
     
    Thanks,
    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans