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 :
Microsoft Dynamics AX (Archived)

New Development pattern in AX 2012

(0) ShareShare
ReportReport
Posted on by 865

Hi,

I am currently working on a project where I need to convert ax 2009 Retail POS customization into AX 2012 Retail POS customization, I am working on a Loyalty Service add-in, I am doing with most of the work, but having issue with the following piece of code:

CardInterface.CardInfo crd = new CardInterface.CardInfo();

crd.CardNumber = textBox1.Text.Substring(2, 16);

In AX 2009, we had CardInterface.dll, but in AX 2012 I think these dlls have been replaced with a single dll Microsoft.Dynamics.Retail.Pos.Contracts.DLL

I've added a reference to Microsoft.Dynamics.Retail.Pos.Contracts.DLL, I can also see an ICardInfo interface in intellisense here: Microsoft.Dynamics.Retail.Pos.Contracts.DataEntity.ICardInfo

But I am unable to figure out how can I initiate this so I can use the crd.CardNumber

I have had this issue before too where I need to initiate blank operations dll from another service, but I could not do it and had to replicate the whole functionality in that dll again.

Any Help would be very much appreciated

*This post is locked for comments

I have the same question (0)
  • Fx Profile Picture
    425 on at

    Hi,

    There is two questino in your post, first How to initialise a ICardInfo object. If you take au look into the standard Loyalty, you will see this code lines:

    public bool AddLoyaltyRequest(IRetailTransaction retailTransaction, string cardNumber)

    {

     

    cardInfo.CardNumber = cardNumber;

    ICardInfo cardInfo = Utility.CreateCardInfo();

    return AddLoyaltyRequest(retailTransaction, cardInfo);

    }

    You can find "Utility" in the Application Object like that:

    this

    .Application.BusinessLogic.Utility

    About the BlankOperation, you can directy  call a custom Static method or call the BlankOperation Logic like taht:

    Application.RunOperation(

     

    PosisOperations.BlankOperation, Param[])

    But I don't khnow want exactly you have to put in the Param[ ] Object, myabe a another community member can help on it.

    Sincerely

    Fx

    P.S: My answer is base on a 2012 R2 version

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 24

#2
Michel ROY Profile Picture

Michel ROY 14

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans