1
您可以請幫助我crm 2011 我需要從我們的另一個系統進口發票。 (很簡單)crm:創建獨特的發票
private void CreateInvoice(Invoice _invoice)
{
IOrganizationService _service = GetCRMService();
Entity entity = new Entity("invoice");
entity[e_Invoice.InvoiceNumber] = _invoice.Id.ToString();
entity[e_Invoice.CustomerId] = new EntityReference("account", new Guid("6209A6AD-43B6-E211-A99D-005056A51C55"));
_service.Create(entity);
}
我呼叫事件上PreRetriveInvoice。
所以上第二呼叫,方法創建另一個項目(如INV-01157-F4C5F5)
對我來說這是不可接受的。
如何查詢發票號碼?就像系統中有這個號碼一樣,我會跳過記錄。