title: Created Entity using plugin has no valid Entity.Id Value
body: <p>I have managed to execute the statement to create an entity successfully without any errors, but the <code>id</code> of the entity remains as default <code>00000000-0000-0000-0000-000000000000</code>. In CRM, the created entity did not appear too.</p>
  
  <p>I have not included all fields in the entity, and only inputting 1 field for testing.</p>
  
  <p>Is it due to some mandatory fields not being filled, that is causing the above false positive that the entity is created?</p>
  
  <p>Below is my code snippet:</p>
  
  <p>Call CreateCase(row)</p>
  
  <pre><code>foreach (DataRow row in caseTable.Rows)
  {
      Entity caseEntity = helper.GetCasebyID((string)row[Excel.ID]);
  
      if (caseEntity == null)
      {
          caseEntity = CreateCase(row);
      }
  }
  </code></pre>
  
  <hr>
  
  <p>CreateCase(row):</p>
  
  <pre><code>private Entity CreateCase(DataRow row)
  {
      Entity caseEntity = new Entity("new_case");
  
      if (!(string.IsNullOrEmpty(row[Excel.sourcename].ToString().Trim())))
      {
          caseEntity.Attributes[Case.sourcename] = row[Excel.sourcename];
      }
      helper.GetOrganizationService().Create(caseEntity);
      Logger.Info(caseEntity.LogicalName + " " + caseEntity.Id + " created. ");
      //output: case 00000000-0000-0000-0000-000000000000 created. 
  }
  </code></pre>
  
  <hr>
  
  <p>Helper class:</p>
  
  <pre><code>public class Helper
  {
      private OrganizationServiceProxy _proxy;
      private IOrganizationService _org;
  
      public IOrganizationService GetOrganizationService()
      {
          if (_org == null)
          {
              var credential = new ClientCredentials();
              credential.Windows.ClientCredential.Domain = ConfigurationManager.AppSettings["Domain"];
              credential.Windows.ClientCredential.UserName = ConfigurationManager.AppSettings["Username"];
              credential.Windows.ClientCredential.Password = Decrypt(ConfigurationManager.AppSettings["Password"]);
              Uri organizationUri = new Uri(ConfigurationManager.AppSettings["OrganizationUri"]);
              Uri homeRealmUri = null;
              _proxy = new OrganizationServiceProxy(organizationUri, homeRealmUri, credential, null);
              _proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
              _org = new OrganizationService(_proxy);
          }
          return _org;
      }
  }
  </code></pre>