Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

AIF Vendor creation - contact details

Posted on by 1,669

Hi everyone

My AIF knowledge is fairly bad, so would appreciate all the help I can get.


When we try create create a new vendor via AIF in company A, if a vendor with the same name already exists in company B, you'll get an error stating that the record already exists.

When you do the same thing from the front end (ie. create a vendor with an existing name from the UI), it'll prompt you and ask whether you'd like to create a new org, or select an existing one.

If you choose to create a new one, then a new vendor will be created in that entity, with a new DirPartyTable record, and you can add new addresses and new contact info etc.

How do you cater for the same functionality in AIF?

I've tried to (in code) check whether the party record already exists, and if it does, create a new one. This works.

I've been able to steal some of the address details off the vendor before changing it's party id, and create a new address. This works.

I can't get the contact info though.

Perhaps my strategy is wrong all together.

So, my question is, in this situation, how could i create new contact details with the info that comes from the xml file. ie. How do I access it in AxVendTable?

The bigger question is, if I'm doing this wrong, what is the correct solution?

Thanks

  • WillWU Profile Picture
    WillWU 22,350 on at
    RE: AIF Vendor creation - contact details

    Hi BrandonSA,

    In your case, you have successfully created the Vendor and Vendor  address details. I think your problem may be in the code of creating contact details. How do you get the contact information? Please show us your code.

    Please read the blog to study the relations between tables like LogisticsElectronicAddresses and LogisticsPostalAddress and DirParty.

    mohsinkhalid.com/.../

  • A.Prasanna Profile Picture
    A.Prasanna 8,163 on at
    RE: AIF Vendor creation - contact details

    refer this link it might help : cloudblogs.microsoft.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans