crm业务流程中optionsset的clearoption [英] clearoption for optionset in crm business process flow

查看:214
本文介绍了crm业务流程中optionsset的clearoption的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个业务流程 在其步骤之一中,我添加了一个选项集(子类别)

I have a business process flow In one of its steps I have added an option set(sub category)

我正在尝试使用以下代码清除选项集中的选项

I am trying to clear the options in the optionset using the below code

Xrm.Page.getControl("new_subcategory").removeOption(100000005)
Xrm.Page.getControl("new_subcategory").clearOptions()

这将删除表单内选项集的选项,但不会删除业务流程流程中相同选项集的选项

This removes the options for the optionset that is inside the form, but it is not removing for the same option set that is in the step of business process flow

推荐答案

您需要在ID中添加header_process_.所以:

You need to added header_process_ to the id. So:

Xrm.Page.getControl("header_process_new_subcategory").removeOption(100000005)
Xrm.Page.getControl("header_process_new_subcategory").clearOptions()

SDK参考

这篇关于crm业务流程中optionsset的clearoption的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆