Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

OOB code for LogisticsLocationSelectionLookup

(2) ShareShare
ReportReport
Posted on by 81
In this OOB  Class: LogisticsLocationSelectionLookup
 
In the buildQuery Method, there is the following code:
 
qbrLocationRole = qbd.addRange(viewLocationRoleFieldId);
qbrLocationRole.value(strFmt('0,%1', this.rolesRange(false)));
qbrLocationRole.status(RangeStatus::Hidden);
This for looking up a location.
 
My question concerns the second line.  Why is there a 0 in the range?  I don't think the role value will ever be 0.
 
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,359 Super User 2024 Season 2 on at
    OOB code for LogisticsLocationSelectionLookup
    Hi,

    There will be a range set where the value is zero or a specific location role (record ID value). Depending on a parameter, it will try to find a location for delivery or a one-time vendor. In addition it will return a location without specific roles. In this case it can find a specific delivery address or take the general address as fallback.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans