Hi All,
Is it possible to change the status reason based on phase of the opportunity dynamically?
Thanks,
Abhilash.
*This post is locked for comments
I have used the javascript
var field = <Xrm.Page.OptionSetControl>Xrm.Page.getControl("statuscode");
switch (stepName.getValue().charAt(0)) {
case "1":
if (field != null) {
field.removeOption(596030006);
field.removeOption(596030007);
field.removeOption(596030008);
field.removeOption(596030009);
field.removeOption(596030010);
}
break;
case "2":
field.removeOption(1);
field.removeOption(2);
field.removeOption(596030001);
field.removeOption(596030005);
But it is raising the error The object does not support the "removeOption" property or method
Hi,
If I understand you question you want to change opportunity status based on Business Process Flow Stage? It is possible using a plugin or a workflow (workflow can be triggered on Process Stage Change). If you meant another field on Opportunity - again it can be done using plugin, workflow or javascript.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HR-09070029-0 2
ED-30091530-0 1