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

Notifications

Announcements

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 16
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

News and Announcements

Season of Giving Solutions is Here!

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 311 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Sumit Singh Profile Picture

Sumit Singh 46

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans