Hi Chrisbra22,
First, you need to customize the command for this out-of-the-box Activate button. To hide it, you need to add the 'enable rule' with the logic:
if (bf_accountactivatedflag === true OR bf_customertype_ = 'B2B' (979580001))
return false;
else
return true;
When the activate button triggers you need to set bf_accountactivatedflag to true. For that purpose write
- workflow on change of status.
- add condition when status = active
- Update bf_accountactivatedflag to true
- plugin on change of status in pre-update
- add condition when status = active
- Update bf_accountactivatedflag to true
- similarly, power automate
- or even you can use calculate column
on click of an "Activate Account" button, to store certain values on the Account as variables via JavaScript, which are shown below. For this purpose, you need to customize the out-of-the-box command.
If I answer your question then please mark it as verified.
Let me know if I can provide you with more details.
Thanks
Regards,
Abdul Wahab
Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
Direct/WhatsApp: 923323281237
E-mail: abdulwahabubit@outlook.com
Skype: abdul.wahabubit
Linkedin: www.linkedin.com/.../