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

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

how to use this currententrykey

(0) ShareShare
ReportReport
Posted on by 225

Hi Good day to everyone. Can anybody knows how to use this one

Public Function GetCurrentEntry(Session As QSRules.SessionClass _

) As TransactionEntry

 

    Set GetCurrentEntry = Session.Transaction.Entries( _

        Session.Transaction.CurrentEntryKey)

 

End Function

using sessionclass on the public function process. Basically i what i need is to get a particular item on the transaction grid by selecting any item on the grid and check this on the database. in the middle of a transaction. Thank you

*This post is locked for comments

I have the same question (0)
  • Arun J Profile Picture
    75 on at
    Re: how to use this currententrykey

    First of all, you need to declare a public function like this (I used VB.Net here)

    Public Function Process(ByVal POSSession As Object) As Boolean

           Dim GetCurrentEntry As Object

           GetCurrentEntry = POSSession.Transaction.Entries(POSSession.Transaction.CurrentEntryKey)

    return true

    End Function

    Compile code as DLL, register in your system, call class from POS button as AssemblyName.Classname.

    Please do following in your code

    declare an object say GetCurrentEntry As Object

    GetCurrentEntry = POSSession.Transaction.Entries(POSSession.Transaction.CurrentEntryKey)

    Do necessary on this GetCurrentEntry object. I mean like this

    GetCurrentEntry.ExtendedPrice or GetCurrentEntry.Item.ItemLookupCode etc.

    hope this will make sense

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 > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans