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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Accounts Payable: Stop saving Vendor when Address Grid having nothing

(0) ShareShare
ReportReport
Posted on by 40

Hi 

How I will forcefully stop saving Vendor when Address Grid having nothing. Please check the following:

Vendor-Form-_2D00_-Stop-Saving-Vendor-when-Address-Grid-have-nothing.PNG

I have the same question (0)
  • Ding Li Profile Picture
    480 on at

    Hi, Prashanth,

    I don't think there is an out of box function that prevent saving vendor without entering address.

    However, you can use Global Address Book to check vendors without address specified.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    Do you mean , if the address in not enter , do not allow to create vendor record ? Could you please share reason behind doing this?

    Creating vendor and adding address are two different things , you first create vendor and then add address for it , so even if you want to achieve this through customization i.e checking if address is created or not for a particular vendor is not possible as vendor is not at all exist in the system.

    One possible way is , creating vendor from GAB form where you dont allow to create vendor(Click on vendor button ) if the address in  not addredd on the record.

  • Prashanth Shanker Profile Picture
    40 on at

    Hi Sukrut

    Yeah, exactly. If the address is not enter, do not allow to create Vendor record.

    I want to write the code logic in ValidateWrite to show warning message when Address Grid having nothing or null.

    How to check the Address Grid having nothing or empty?

  • André Arnaud de Calavon Profile Picture
    301,146 Super User 2025 Season 2 on at

    Hi Prashanth,

    When you create a customer, there is a "quick create" form used with minimal customer details and the address. You can consider creating a customization for the vendors in a similar way. Then you are able to check the contents of the address if someone wants to close the wizard form.

    Doing something on the standard vendor details form is harder and cumbersome.

  • Prashanth Shanker Profile Picture
    40 on at

    Hi

    Please let me know, is there any thing I check the Address having line or not.

    For example if I call ValidateWrite method and Under ValidateWrite method I check the Address Grid have any line or not.

    If no line exist then warning message will show ("Address is required").

    Understand the logic ?

    Or just let me how I will count the line under Address Grid ?

    If count is zero then warning message will show ("Address is required").

  • André Arnaud de Calavon Profile Picture
    301,146 Super User 2025 Season 2 on at

    Hi Prashanth,

    On the vendor details form this is not possible as it first needs a vendor with a linked party. Then you can add an address.

    Like mentioned above, you can try to change the procedure to first create a party with an address and then create a vendor with this party link or use another create form where you can implement all logic before closing the dialog.

    On what exact object did you want to put your mentioned coding? 

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans