إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
يمكنك استخدام نموذج التعليمات البرمجية التالي في تطبيق وحدة التحكم (.NET framework) الخاص ب Visual Studio لتشغيل إغلاق عناصر العمل المباشرة عن طريق إلغاء تنشيط عنصر قائمة الانتظار المقترن.
للحصول على معلومات حول كيفية تعديل نموذج التعليمات البرمجية ليناسب بيئتك، انتقل إلى التشغيل السريع: نموذج خدمة المؤسسة (C#).
static void Main(string[] args)
{
// e.g. https://yourorg.crm.dynamics.com
string url = "<your environment url>";
// e.g. you@yourorg.onmicrosoft.com
string userName = "<your user name>";
// e.g. y0urp455w0rd
string password = "<your password>";
string conn = $@"
Url = {url};
AuthType = OAuth;
UserName = {userName};
Password = {password};
AppId = 51f81489-12ee-4a9e-aaae-a2591f45987d;
RedirectUri = app://58145B91-0C36-4500-8554-080854F2AC97;
LoginPrompt=Auto;
RequireNewInstance = True";
using (var svc = new CrmServiceClient(conn))
{
WhoAmIRequest request = new WhoAmIRequest();
WhoAmIResponse response = (WhoAmIResponse)svc.Execute(request);
Console.WriteLine("Your UserId is {0}", response.UserId);
try
{
//Provide queueitem id as the second parameter which has to be deactivated.
svc.UpdateStateAndStatusForEntity("queueitem", new Guid("6f15a7f0-8788-eb11-a812-000d3a593524"), 1, 2);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
Console.WriteLine("Press any key to exit.");
Console.ReadLine();
}
}
المعلومات ذات الصلة
نظرة عامة على التوجيه الموحد
إعداد التوجيه الموحد
كيف يؤثر التوجيه الموحد على عناصر قائمة الانتظار وواجهات برمجة التطبيقات المقابلة