先使用插件注册工具获取到镜像ID以及插件步骤ID
再使用代码更新镜像字段,attributes如果是多个字段使用英文逗号分隔
public static void Update(IOrganizationService service,string stepId,string imageId,string attributes)
{
var ent = service.Retrieve("sdkmessageprocessingstepimage", new Guid(imageId), new ColumnSet("attributes"));
ent.Attributes["attributes"] = attributes;
ent["sdkmessageprocessingstepid"] = new EntityReference("sdkmessageprocessingstep", Guid.Parse(stepId));
service.Update(ent);
}