MS CRM 2011,从 quotedetail 到 salesorderdetail 的属性
MS CRM 2011, attributes from quotedetail to salesorderdetail
当从报价或机会创建销售订单时,我需要将一些自定义属性从 quotededetail(实际上也是从 opportunityproduct)复制到 salesorderdetail。
我该怎么做?
我正在编写一个插件以在 salesorderdetail.create 上触发,然后让它检查销售订单中的 quoteid 或 opportunityid 并获取其中一个,然后获取它们的行(quotedetails 或 opporunityproducts)。
但是,据我所知,salesorderdetail 和 quotedetail 之间没有唯一的 link(仅在 salesorder 和 quote/opportunity 之间)。它们唯一的共同点是对特定产品的实体引用 - 虽然这不是唯一的,因为一个报价很可能有几行引用同一产品。
那么如何将这些自定义属性从正确的 quotedetail/opportunityproduct 复制到 salesorderdetail...
有什么想法吗?
/艾达尔
编辑:根据对 Mike 回答的评论,由于他提供的 links,我找到了解决方案。
实体映射解决方案似乎是我面临的问题的答案:
客户关系管理 2011/20013:https://crm2011entitymaps.codeplex.com/releases/view/114229
2015 年客户关系管理:http://crm2011entitymaps.codeplex.com/
通过此解决方案,您可以找到需要编辑的关系(e.q。opportunityproduct -> quotedetail 或 quotedetail -> salesorderdetail),然后为您的自定义属性添加字段映射。
您可以尝试使用 opportunityproducts、quoteddetail 和 salesorderdetails 中的 sequencenumber 字段。我希望这个数字在相关报价机会和订单的行之间保持一致。
编辑:我刚刚意识到您标记了 CRM 2011,但此字段在 CRM 2011 中不可用(我使用的是 2015)。所以这个答案可能对你没有帮助。
编辑:解决方案最终出现在评论中。所以,我将其添加到答案中。
Something you could do it create a new attribute on opportunity & quote (and order and invoice if needed) product,and assign it some sort of unique identifier when the record is created. Then create a mapping for the custom value between the product lines. That way if the other data like price, quantity, etc.. change you still have a way back to the original line.
You'll also notice creating mappings for the line items isn't exposed
through the CRM UI, I've actually created a tool to expose these so
you can create the mappings. http://crm2011entitymaps.codeplex.com/
当从报价或机会创建销售订单时,我需要将一些自定义属性从 quotededetail(实际上也是从 opportunityproduct)复制到 salesorderdetail。
我该怎么做?
我正在编写一个插件以在 salesorderdetail.create 上触发,然后让它检查销售订单中的 quoteid 或 opportunityid 并获取其中一个,然后获取它们的行(quotedetails 或 opporunityproducts)。
但是,据我所知,salesorderdetail 和 quotedetail 之间没有唯一的 link(仅在 salesorder 和 quote/opportunity 之间)。它们唯一的共同点是对特定产品的实体引用 - 虽然这不是唯一的,因为一个报价很可能有几行引用同一产品。
那么如何将这些自定义属性从正确的 quotedetail/opportunityproduct 复制到 salesorderdetail...
有什么想法吗?
/艾达尔
编辑:根据对 Mike 回答的评论,由于他提供的 links,我找到了解决方案。 实体映射解决方案似乎是我面临的问题的答案:
客户关系管理 2011/20013:https://crm2011entitymaps.codeplex.com/releases/view/114229
2015 年客户关系管理:http://crm2011entitymaps.codeplex.com/
通过此解决方案,您可以找到需要编辑的关系(e.q。opportunityproduct -> quotedetail 或 quotedetail -> salesorderdetail),然后为您的自定义属性添加字段映射。
您可以尝试使用 opportunityproducts、quoteddetail 和 salesorderdetails 中的 sequencenumber 字段。我希望这个数字在相关报价机会和订单的行之间保持一致。
编辑:我刚刚意识到您标记了 CRM 2011,但此字段在 CRM 2011 中不可用(我使用的是 2015)。所以这个答案可能对你没有帮助。
编辑:解决方案最终出现在评论中。所以,我将其添加到答案中。
Something you could do it create a new attribute on opportunity & quote (and order and invoice if needed) product,and assign it some sort of unique identifier when the record is created. Then create a mapping for the custom value between the product lines. That way if the other data like price, quantity, etc.. change you still have a way back to the original line.
You'll also notice creating mappings for the line items isn't exposed through the CRM UI, I've actually created a tool to expose these so you can create the mappings. http://crm2011entitymaps.codeplex.com/