Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / WAX extension code not...
Finance forum

WAX extension code not recognized by emulator/device

(0) ShareShare
ReportReport
Posted on by 345
Hello, I'm working on a mod to add additional validation for a WAX workflow (D365 warehouse data collection) that runs on the device/emulator. I can't seem to get my chain of command change picked up on the emulator. Does anyone know if that is maybe a caching problem or if there is anything special about how code is called from the emulator ? CoC extensions work for me in other areas. After a rebuild on a tier1 environment, the first communication from the emulator to D365 takes about 15s which would make me think that the runtime code is refreshed. However, no matter what I do in my extension, it is simply not called. The next(..) in this case is called after my validation.
Here's the code example :

[ExtensionOf(ClassStr(WHSPutLocationChangeCheck))]
final class WHSPutLocationChangeCheck_Extension
{
public boolean checkLocation()
{
boolean retValue = true;
InventTable inventTable;
WMSLocation wmsLocation;
WHSLocationProfile profile;

inventTable = InventTable::find(itemId);

wmsLocation = WMSLocation::find(locationId,warehouseId);
profile = wmsLocation.whsLocationProfile();


try

{

// here would be the validation
return checkFailed(strFmt("Test error",itemId, locationId));

}
catch (Exception::Error)
{
return retValue;
}

retValue = next checkLocation();

return retValue;

}

}

  • Frank Bruemmer Profile Picture
    Frank Bruemmer 345 on at
    RE: WAX extension code not recognized by emulator/device

    I was able to resolve the issue after I learned that I didn't hit the right code. I moved my validation to a different class/method and now it works. I appreciate your link, it will help with modifications in the future. Thank you.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: WAX extension code not recognized by emulator/device

    pls see if this link from Zach helps

    cloudblogs.microsoft.com/.../customizing-the-warehousing-mobile-app

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans