web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

}

  • WillWU Profile Picture
    22,363 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 105 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 79

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 73 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans