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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Get shiftId in pre close shift trigger POS

(0) ShareShare
ReportReport
Posted on by

HI all,

Please help me how to get shift Id in PreCloseShiftTrigger.

My process is: Use Non-Drawer => Manage Shift => Close shift(Shift have been blind closed shift).

I need to get shiftId in PreCloseShiftTrigger.

Thanks for support.

Nghia Song

I have the same question (0)
  • Suggested answer
    Ramune Profile Picture
    on at

    Hi Song,

    I will leave this for the community to answer. Let's see if anybody has experienced the same and can advice for you anything.

  • Suggested answer
    Ramshenkar Profile Picture
    on at

    Hi, 

    PreCloseShiftTrigger  will provide you options in the form of IPreCloseShiftTriggerOptions. You can get ShiftId using those options and also you can identify if that's CurrentShift or not.

    pastedimage1594915359128v2.png

    Hope this will help you!

    Regards,

    Ram

  • Community Member Profile Picture
    on at

    Hi Ram,

    Very happy to see your reply.

    I know this interface and trigger have Shift object inside .

    But I can not get data when it running in precloseshiftTrigger.

    Please see my code and debug.


    pastedimage1594951289742v1.png

    Thanks.

    Nghia Song

  • Suggested answer
    Ramshenkar Profile Picture
    on at

    Hi Song,

    I am able to get those properties populated correctly in the same trigger. 

    pastedimage1594985598562v1.png

    My environment is on 10.0.10 and PU34. Can you share your environment version details? 

    Regards, 

    Ram

  • Community Member Profile Picture
    on at

    Hi Ram,

    Please define a variable to collect data in options. It will be undefined. 

    Please see my image, in first debug when open execute, I have object shift look like you.


    pastedimage1594990522264v1.png


    But through inside it is undefined.
    pastedimage1594990622591v2.png

    Thanks

  • Suggested answer
    Ramshenkar Profile Picture
    on at

    Hi Song, 

    It is working for me.

    pastedimage1594992584247v1.png

  • Community Member Profile Picture
    on at

    HI Ram,

    I don't now why it not working for me.

    My enviroment is:

    Application release

    Microsoft Dynamics 365 for Finance and Operations (10.0.11)

    Platform release

    Update35 (7.0.5644.41461)

  • Suggested answer
    Ramshenkar Profile Picture
    on at

    Hi Song, 

    I request you to raise a case with Microsoft Support team. 

    Thanks, 

    Ram 

  • Community Member Profile Picture
    on at

    Hi Ram,

    I upgrade version 10.0.11.300008.

    Now, It's Okay.

    Thanks for help,

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

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Siv Sagar Profile Picture

Siv Sagar 105 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans