Skip to main content

Notifications

Announcements

No record found.

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

Deactivate address

(2) ShareShare
ReportReport
Posted on by 1,167
Hi,

How can i deactivate an address by code?

the deactivate button can be enabled based on some conditions


and here's the code to deactivate an address from the UI
 
 
how can i write code to deactivate an address but still follow all standard rules and validations?
Categories:
  • .. Profile Picture
    .. 1,167 on at
    Deactivate address
    I want to create a custom service. When someone passes me a locationId, then I want to deactivate it.
    I can easily change the validTo and that's it. But I want to know the correct way to do it (if there is one)
  • Waed Ayyad Profile Picture
    Waed Ayyad 6,623 Super User 2024 Season 2 on at
    Deactivate address
    Hi, 
     
     Do you want to create new button, or do you want to add more conditions to existing button?
     
    Thanks,
    Waed Ayyad

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

Congratulations 2024 Spotlight Stars!

Kudos to all of our 2024 community stars!

Meet the Top 10 leaders for December!

Congratulations to our December super stars!

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,579 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans