Salesforce:如何检索布局字段是否已标记为必需?(Salesforce: How does one retrieve whether a layout field has been marke

编程入门 行业动态 更新时间:2024-10-26 22:27:53
Salesforce:如何检索布局字段是否已标记为必需?(Salesforce: How does one retrieve whether a layout field has been marked as required?)

所以这很奇怪,想知道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.

更多推荐

本文发布于:2023-07-07 09:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1061426.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字段   标记   布局   Salesforce   retrieve

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!