Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / OOB code for Logistics...
Finance forum
Unanswered

OOB code for LogisticsLocationSelectionLookup

Posted on by 71
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... 287,773 Super User 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,773 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,513 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans