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
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":
if (field != null) {
field.removeOption(1);
field.removeOption(2);
field.removeOption(596030001);
field.removeOption(596030005);
}
break;
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.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156