web
You’re offline. This is a read only version of the page.
close
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

}

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi uej.no,

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

  • Community Member Profile Picture
    on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 302 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 120 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans