Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

AIF Vendor creation - contact details

(0) ShareShare
ReportReport
Posted on by 1,671

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
    22,352 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
    8,203 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans