13-03-2012, 16:56
|
|
|
חבר מתאריך: 11.12.08
הודעות: 11
|
|
היי,
שאלה ב-Crm 2011 .
אני צריך לכתוב קוד ב-Console Application.
יש לי ישות Entity -בשם Case ואני צריך למחוק את כל מיילים שנתקבלו בין תאריך x- לתאריך y.
צריך לזכור שאני צריך לגשת ל-crm.
התחלתי לעשות משהו ופה נתקעתי ראה/י מטה.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Description;
using System.Configuration;
using System.Net;
namespace ConsoleApplication3
{
class Program
{
private static string TCrmService = ConfigurationManager.AppSettings["crmserviceurl"];
private static string UserName = ConfigurationManager.AppSettings["UserName"];
private static string Password = ConfigurationManager.AppSettings["crmPassword"];
public static ClientCredentials ClientCredentials
{
get
{
var credentials = new ClientCredentials();
credentials.Windows.ClientCredential = new NetworkCredential(TCrmService, UserName, Password);
return credentials;
}
}
static void Main(string[] args)
{
}
}
}
אני פשוט לא יודע איך להמשיך מכאן.
תודה.
|