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 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... 290,552 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans