Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Make address mandatory in a specific company

(2) ShareShare
ReportReport
Posted on by 6,455
Hello,
is there a way to make an Address mandatory generally in only a specific company?
For example, do I need to write some code separatelly in all the forms where the Address (LogisticsPostalAddress) is used or I can write it at one place and it will be applied to every table where Address is used?
Categories:
  • Suggested answer
    Adis Profile Picture
    3,588 Super User 2025 Season 1 on at
    Make address mandatory in a specific company
    Hi,
     
    What you could do is creating a Power Automate flow that checks if the address is empty\blank after a vendor is created and then send a Teams message or email to the creator of the vendor.
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    294,095 Super User 2025 Season 1 on at
    Make address mandatory in a specific company
    Hi Johnny,
     
    It is not possible to make an address mandatory as it is a separate table storing postal addresses. When creating e.g. a vendor, you will need to have the vendor record saved before you can add an address. After the vendor is saved, there is no trigger to require a record in a related table.
     
    When you create a new customer, a dialog pops up. On such dialog, you can add validations to have an address filled before saving the details and close the dialog. You can consider to create similar creation dialogs and add address validations.
     
    You can also have a look at the ISV solution for Master data management from Staedean. This includes a data entry workflow feature where you can configure data entry pages and make specific information mandatory before completing the step.
     
    Note that after creation of a customer including an address it is currently possible to delete addresses. You will then also need a validation that at least one primary address remains for the party.
     
    Also note that in case you are reusing the same party at a customer in two different legal entities where in one company the address is mandatory and the other not, the validation for deleting an address should be checking more than just only the current company. 

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,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans