第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

在 Dynamics 365 中正確創(chuàng)建 SalesOrder

在 Dynamics 365 中正確創(chuàng)建 SalesOrder

C#
慕尼黑8549860 2021-07-15 18:05:35
我正在嘗試編寫一個(gè) Dynamics 365 CRM 插件,我想在其中創(chuàng)建一個(gè)新的“銷售訂單”。我有以下代碼:using System;using System.Collections.Generic;using System.Linq;using System.ServiceModel;using System.Text;using System.Threading.Tasks;// Microsoft Dynamics CRM namespace(s)using Microsoft.Xrm.Sdk;using Microsoft.Xrm.Sdk.Query;namespace Microsoft.Crm.Sdk.Samples{    public class OrderTest : IPlugin    {        public void Execute(IServiceProvider serviceProvider)        {            ITracingService tracingService =                (ITracingService)serviceProvider.GetService(typeof(ITracingService));            // Obtain the execution context from the service provider.            Microsoft.Xrm.Sdk.IPluginExecutionContext context = (Microsoft.Xrm.Sdk.IPluginExecutionContext)                serviceProvider.GetService(typeof(Microsoft.Xrm.Sdk.IPluginExecutionContext));            // The InputParameters collection contains all the data passed in the message request.            if (context.InputParameters.Contains("Target") &&                context.InputParameters["Target"] is Entity)            {                // Obtain the target entity from the input parameters.                Entity entity = (Entity)context.InputParameters["Target"];                if (entity.LogicalName != "salesorder")                    return;我的問題是它無法創(chuàng)建銷售訂單。我得到的錯(cuò)誤消息是無用的。它說:Download the details and load with Plug-in Profiler.后跟一個(gè)長(zhǎng)標(biāo)記。我不明白如何創(chuàng)建“銷售訂單”以及如何獲得更容易理解的錯(cuò)誤消息。
查看完整描述

1 回答

?
元芳怎么了

TA貢獻(xiàn)1798條經(jīng)驗(yàn) 獲得超7個(gè)贊

您編寫的代碼用于使用插件在另一個(gè)執(zhí)行管道中創(chuàng)建銷售訂單。并且您注冊(cè)了此插件步驟以在創(chuàng)建銷售訂單實(shí)體記錄本身時(shí)運(yùn)行。

因此,此代碼將繼續(xù)循環(huán),以避免您可以使用深度屬性來阻止死鎖。

為了您的學(xué)習(xí)目的,請(qǐng)?jiān)谄渌麑?shí)體上注冊(cè)此插件步驟并對(duì)其進(jìn)行測(cè)試。


查看完整回答
反對(duì) 回復(fù) 2021-07-17
  • 1 回答
  • 0 關(guān)注
  • 217 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)