CRM SDK-更新实体的主要图像到另一个字段

发布于 2025-02-03 05:04:38 字数 571 浏览 4 评论 0原文

我正在尝试以编程方式更新现有实体的primary图像属性。

我一直在尝试访问实体的属性,但找不到有关主要图像的任何属性。

是否有可能在C#中使用CRM SDK请求实现这一目标?如果是,我该如何实现?

我正在尝试以下方法:

var entityMetadata = RetrieveEntityMetadata(service);
entityMetadata.PrimaryImageAttribute = "ps_anotherPrimaryImage";

var updateEntityRequest = new UpdateEntityRequest();
updateEntityRequest.Entity = entityMetadata;

“编译时间错误”

I am trying to update the existing entity's PrimaryImage attribute programmatically.

I have been trying to access the entity's attributes but couldn't find any regarding PrimaryImage.

Is it even possible to achieve that using CRM SDK request in C#? If yes, how can I achieve it?

I am trying with below approach:

var entityMetadata = RetrieveEntityMetadata(service);
entityMetadata.PrimaryImageAttribute = "ps_anotherPrimaryImage";

var updateEntityRequest = new UpdateEntityRequest();
updateEntityRequest.Entity = entityMetadata;

compile time Error

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文