Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

update/removal WhsrfPassthrough pass value in an extension class

(0) ShareShare
ReportReport
Posted on by

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
    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
    22,352 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,762 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans