Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

update/removal WhsrfPassthrough pass value in an extension class

Posted on by Microsoft Employee

I am adding a new parameter through "pass" object in my WHSControl class( something like this pass.insert(#item_ExpiryDate, ExpDate) and then i am able to access this parameter in an extension class WhsWorkExecuteDisplayCycleCount_Extension and execute some logic. this customization initially was working. in the middle of this assigment we have upgraded my devbox to a newer version and suddenly i can't remove the value of my passed parameter. although i do explicitly remove it by running a code like following but on the next step in the flow while working i warehouse management app #Item_ExpiryDate gets populated again somehow.. any ideas what would be the best way to pass through customized parameters through pass object and later on remove them eventually. 

public container displayForm(container _con, str _buttonClicked)
{

//some logic

if (pass.exists(#Item_ExpiryDate) )
{

        pass.remove(#Item_ExpiryDate);

}

//some more logic

}

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: update/removal WhsrfPassthrough pass in an extension class

    yes, based on value being based through #Item_ExpiryDate to the WhsWorkExecuteDisplayCycleCount_Extension class i am showing an infolog in warehouse management app after an item barcode has been scanned. but then at the next step in the workflow i am removing this infolog, together with #Item_ExpiryDate from (pass) object but as system keeps repopulating #Item_ExpiryDate in pass object the infolog keeps showing up on the next steps also.

  • WillWU Profile Picture
    WillWU 22,350 on at
    RE: update/removal WhsrfPassthrough pass in an extension class

    Hi uej.no,

    Why you have to remove the WhsrfPassthrough, do you have any actual business needs?

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans