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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Get Channel information from PreProductSaleTrigger within POS

(3) ShareShare
ReportReport
Posted on by 22
Hello experts,
 
I'm creating an extension of PreProductSaleTrigger.I need to check if an item is blocked for sale (according to some parameters) within the database.
 
I'm having problems getting some channel parameters, like ChannelId and DataAreaId. When debugging my extension, I've noticed that some global variables contain this information, but unfortunately, I cannot access these global variables inside my trigger:
 
 
Inside my trigger, I can access the 'options' variable, but it only contains the product and cart information. The cart information includes the channel, but it's only filled when we already have an item inserted into the cart, so it's useless for me.
 
 
Do you guys know how can I get the channel information inside a trigger?
 
Thanks in advance.
 
Luiz

 
I have the same question (0)

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 July 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... 92 Super User 2026 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 66 Super User 2026 Season 2

#2
Paolo Cecchelli Profile Picture

Paolo Cecchelli 66 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans