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

How to get vendor contact info

(0) ShareShare
ReportReport
Posted on by 2,426

Good morning,

I am trying to import vendor contact info (it might be primary or non primary)

if vendor contact info is already there(whether it is primary or non primary) then update with new data or insert.

i want that record to update old contact info with new contact info

// For primary i can use this

logisticsElectronicAddress = LogisticsElectronicAddress::findRecId(DirPartyTable::findRec(vendtable.Party).PrimaryContactPhone,true);

so with this i can get primary contact.

If that existing  contact is not primary  instead i have non primary contact i am able to get this in this way 

LogisticsElectronicAddress    lla ;
select forUpdate firstOnly lla
where lla.Location == DirPartyLocation::findOrCreate(vendtable.Party, 0).Location
          && lla.Type == LogisticsElectronicAddressMethodType::Phone;


I want to know am i doing correct or are there any methods ?

please provide any alternate solution.

Regards.

Have a great day.

*This post is locked for comments

I have the same question (0)
  • AX 2012 r3 Profile Picture
    2,426 on at

    Experts please reply

  • AX 2012 r3 Profile Picture
    2,426 on at

    Experts please reply.

  • AX 2012 r3 Profile Picture
    2,426 on at

    Experts please reply

  • Verified answer
    AX 2012 r3 Profile Picture
    2,426 on at

    What happened to community no one is replying to post.

    I found out solution for this.

    This piece of code might help some one

    lla = LogisticsElectronicAddress::findByLocationAndType(DirPartyLocation::findOrCreate(vendtable.Party, 0).Location,LogisticsElectronicAddressMethodType::Phone,true);


    Experts please provide some replies some one is seeking for your help.

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    People were sleeping, for example. When you asked, it was 6 am in London and 1 am in New York. Or they have other things to do on Saturday morning. You shouldn't get crazy when you don't get reply immediately; waiting to Monday, for instance, would be reasonable.

    This is a community forum, where people answer questions for free when (and if) they have time. If you need support with response time 4 hours, you'll have to pay a huge amount of money to some company.

    Please stop spamming the forum with "Experts please reply". It doesn't help anything.

  • AX 2012 r3 Profile Picture
    2,426 on at

    Dear martin,

    I agree what you said.

    But how come 218 views for this question.

    I am not spamming.if any one doesnot reply then only i am asking again.

    Regards.

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Not every user as the answer for you… You must wait for the right person.

    Also the question "are there any methods?" sounds quite generic and I would think you're looking for different approaches to the problem, not just for a method wrapping the select statement (which can be found by cross-references). Next time, try providing more details instead of repeatedly posting "Experts please reply". Nobody can help you if nobody understands what you want.

  • AX 2012 r3 Profile Picture
    2,426 on at

    Dear martin,

    I mentioned clearly in my post that i am viewing for different method.

    You can see my scenario.Please read my post once again.Is that not clear enough to explain the scenario.

    Regards.

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    I was merely trying to increase your chances to get an answer next time. The choice is yours.

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans