FAQ - Happi-cat/Untech.SharePoint GitHub Wiki

Contents:

Q: UserInfo has an empty Email property.

A: There are several reasons why this property is empty:

  • FieldUserValue in CSOM won't return Email.
  • Earlier user field converter for SSOM had next line of code: Email = userValue.User.Email. But that line was removed due to high performance degradation: query worked slower in 5-7 times.

Q: Query is valid but no items returned by query.

A: Probably you want to query items with content type id that doesn't match to content type id of your enity. In that case you should:

  1. Verify content type mapping and validate content type id of items which you want to fetch.
  2. Specify content type id in mapping explicitly if there are several content types in current list. If content type management is disallowed please turn it on for a while and validate all content types that presented here. Turn back content type management for that list.
  3. Alternatively you can disable filtering by content type in data context as it was done in example below:
public ISpList<Entity> Entities {
       	get { return GetList(c => c.Entities, SpListOptions.NoFilteringByContentType); } 
}
⚠️ **GitHub.com Fallback** ⚠️