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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Disable Flight PriceDiscTableCreateSkipEventsFlight

(0) ShareShare
ReportReport
Posted on by 25

Hi all,

I created this trigger for a PriceDiscTable BusinessEvent based on the event "onInserted".

    [DataEventHandler(tableStr(PriceDiscTable), DataEventType::Inserted)]
    public static void PriceDiscTable_onInserted(Common sender, DataEventArgs e)
    {
        PriceDiscTable priceDiscTable = sender as PriceDiscTable;
        adPriceDiscTableBE businessEvent = adPriceDiscTableBE::newFromPriceDiscTable(priceDiscTable);
        if(businessEvent)
        {
            businessEvent.send();
        }
    }

So far, so good. BUT the Code is not executed, because a flight skips the events (and datamethods)

public class PriceDiscTableCopyFromPriceDiscAdmTrans extends SysQueryInsertRecordSet
{
     protected final Common initTargetCursor()
    {
        PriceDiscTable priceDiscTableInsert;

        priceDiscTableInsert.skipDataMethods(true);
        priceDiscTableInsert.skipEvents(PriceDiscTableCreateSkipEventsFlight::instance().isEnabled());

        return priceDiscTableInsert;
    }

}

What did I try until now?

- CoC (doesnt help much, because of hookable:false or final method etc.)

- searching for a toggle class

- a killswitch class

- looking for the flight in the features (while debugging, I could see that is was "treated" like a feature(?))

At this point I am lost :D

Can anybody help with this? It must be something new with the PU56, because it worked at the beginning of the year.

thanks in advance

  • Suggested answer
    huijij Profile Picture
    19,813 on at

    Hi Efthi,

    It is recommended that you open a case in support, you will need to provide a business reason why this needs to be disable it.

    admin.powerplatform.microsoft.com/support

    Best Regards,

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans