Skip to main content

Notifications

Dynamics 365 Community / Forums / Commerce forum / Get Channel informatio...
Commerce forum
Unanswered

Get Channel information from PreProductSaleTrigger within POS

Posted on by 4
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

 

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,888 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans