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

Adding New Records in Address Table ,DirPartyTable,DirPersonPartyTable

(0) ShareShare
ReportReport
Posted on by 765

Hi,

Am working in dynamics ax 2009.I want to add records in Address table. Records are came from API. So how to insert records in Address Table?

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    236,320 Most Valuable Professional on at
    RE: Adding New Records in Address Table ,DirPartyTable,DirPersonPartyTable

    What problem do you have with inserting records to the Address table? I assume you know who to fill field values and call the insert() method, don't you?

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,353 Super User 2025 Season 2 on at
    RE: Adding New Records in Address Table ,DirPartyTable,DirPersonPartyTable

    Hi Saravanaa,

    When you want to insert records, you can use e.g. Application Integration Framework (AIF). There is a service available out if the box called AddressService.

  • Saravanaa Profile Picture
    765 on at
    RE: Adding New Records in Address Table ,DirPartyTable,DirPersonPartyTable

    Actually records are get from tmpTable. once i assigning the values for addressTable fields.after execution addressTable fields  street,zipcode  are automatically get different values. its not relating to my temporary table values.

    while select tmptable

          where tmptable.isCreated == NoYes:: Yes

    {

       custTable.AccountNum = tmpTable.ClientId;

       custTable.FirstName     = tmpTable.FirstName;

       custTable.custGroupId = '100';

       custTable.insert();

      addressTable.AddrRecId = custTable.recId;

      addressTable.AddrTableId = custTable.TableId;

     addressTable.street = tmpTable.street;

     addressTable.zipcode = tmpTable.zipcode;

     addressTable.CountryregionId = tmpTable.RegionId;

     addressTable.insert()

    }

    after executing this code addressTable fields are automatically different values. its not related to my tmpTable. so pls help me what mistake i did above code.

  • André Arnaud de Calavon Profile Picture
    299,353 Super User 2025 Season 2 on at
    RE: Adding New Records in Address Table ,DirPartyTable,DirPersonPartyTable

    Hi Saravanaa,

    Now your question becomes clear to me. Note that there is logic executed when you call the insert method. Based on some setup or multiple values per Zipcode (same city) this logic can also change some of the fields you filled from your tmpTable. I can recall a problem in AX2009 but it has been over 5 years ago for me.

    The executed logic tries to format the complete address in the address field. Probably try to find the culprit and get around this problem.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
NNaumenko Profile Picture

NNaumenko 2

#2
Aayyon Das Profile Picture

Aayyon Das 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans