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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

want To know the detail of customer using this class - RetailTransactionService

(0) ShareShare
ReportReport
Posted on by 371

want to know the detail using this class by running the job 

i am using this code but getting error

static void Job8(Args _args)
{
RetailTransactionService RetailTransactionService;
getvaluefroclass getvaluefroclass;
RetailTransactionServiceOrders RetailTransactionServiceOrders;
container a;
CustTable CustTable;
select getvaluefroclass;

a = RetailTransactionService::getCustomer("US-018");

info(strFmt("%1",a));

}

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    306,118 Super User 2026 Season 1 on at

    Hi Vinay,

    Can you explain your question, please? What you do mean with "the detail"?

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    Hi Vinay Tak,

    You did not specify what error you receiving, however, you definitely cannot use info(strFmt("%1",a)); with a container.

    If you want to see XML message created by this method you need to do next:

    info(strFmt("%1",conPeek(a, 3)));
    
  • CU02060633-1 Profile Picture
    371 on at

    hey @ievgen i just want to show the few details regrading this particular account and want to store in my temp table also while runing this job its show -

    <?xml version="1.0" encoding="utf-8"?><Customer><CustTable RecId="22565422063" AccountNum="US-018" Party="22565426197" CustGroup="30" InvoiceAccount="" NameAlias="Contoso Retail Detro" Currency="USD" LanguageId="en-us" MultiLineDisc="" EndDisc="" LineDisc="" PriceGroup="" CreditMax="350000.000" Blocked="0" TaxGroup="MI" VATNum="" OrgId="" UsePurchRequest="0" InclTax="0" IdentificationNumber="" CNPJCPFNum="" /><RetailCustTable RecId="5637145080" AccountNum="US-018" NonChargableAccount="0" PostAsShipment="0" ReceiptEmail="" ReceiptOption="0" RequiresApproval="0" UseOrderNumberReference="0" Image="<?xml version="1.0" encoding="utf-8"?><RichMediaLocations><RichMediaLocation><Url>Images/Customers/{CustomerNumber}.jpg</Url><AltText></AltText></RichMediaLocation></RichMediaLocations>" /><DirPartyTable RecId="22565426197" Name="Contoso Retail Detroit" PartyNumber="000000886" RelationType="6886" /><PostalAddress><DirPartyLocation RecId="22565427112" Location="22565427746" Party="22565426197" IsPostalAddress="1" IsPrimary="1" IsPrivate="0" IsLocationOwner="1" ValidFrom="" ValidTo="2154-12-31T23:59:59" /><DirPartyLocationRole /><LogisticsLocation RecId="22565427746" LocationId="000001288" Description="Contoso Retail Detroit" IsPostalAddress="1" ParentLocation="0" /><LogisticsLocationRole /><LogisticsPostalAddress RecId="22565424803" Location="22565427746" Address="789 Pear Street&#xA;Madison Heights,MI 48071 &#xA;USA" ZipCode="48071" State="MI" CountryRegionId="USA" County="OAKLAND" City="Madison Heights" Street="789 Pear Street" TimeZone="0" StreetNumber="" BuildingCompliment="" DistrictName="" ValidFrom="2009-01-06T13:44:59" ValidTo="2154-12-31T23:59:59" /></PostalAddress><RetailCustAffiliations /></Customer>

  • Mea_ Profile Picture
    60,286 on at

    You original question was about RetailTransactionServiceOrders, I hope it is solved.

    Looks like you don't know what to do with information you received, but it is probably different question.

    If you have questions about RetailTransactionService  class please ask them here, if you want to know how to get customer details please start new thread, because you don't need RetailTransactionService  at all to get this info.  

  • CU02060633-1 Profile Picture
    371 on at

    thanx @ievgen Miroshnikov and @André Arnaud de Calavon

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans