所以这很奇怪,想知道SFDC是否只是返回“错误”的信息。
我正在处理对象的布局,并且在界面中,我已经将默认布局中的字段(没有其他布局)设置为“必需”。
但是,当我从API中检索此布局时,当它应该为FALSE时,问题字段的“nillable”属性为TRUE。
销售人员是否期望像这样的数据可以从其他地方检索? 无论它看起来API是撒谎。
So this is weird, wondering if perhaps SFDC is just returning "wrong" information.
I'm working with layouts for an object, and in the interface I have set a field in the default layout (there are no other layouts) to "required".
But, when I retrieve this layout from the API, the field in question's "nillable" attribute is TRUE when it should be FALSE.
Does salesforce expect data like this to be retrieved from somewhere else? Regardless it seems the API is lying.
最满意答案
API不是说谎 - 该字段只是由特定布局所需,而不是由底层系统所需。
如果您希望真正需要它,则需要在该字段本身上设置此属性。
The API is not lying - the field is only required by that particular layout, not by the underlying system.
If you want it to truly be required, you need to set this attribute on the field itself.
更多推荐
发布评论