ServiceManager/Utility/Helpers/SearchCustomFieldValueHelper.cs
/// <summary>
/// Sets the value of the specified custom field.
/// </summary>
/// <param name="fieldId">The field id.</param>
/// <param name="searchOp">The search operator.</param>
/// <param name="value">The value.</param>
/// <returns></returns>
Sets the value of the specified custom field.
Sets the value of the specified custom field .
public SearchCustomField SetValue(string fieldId, SearchDateFieldOperator searchOp, DateTime? value)
        {
            return SetValue(fieldId, value, () => new SearchDateCustomField()
                                                {
                                                    internalId = fieldId,
                                                    @operator = searchOp,
                                                    operatorSpecified = true,
                                                    searchValue = value.GetValueOrDefault(),
                                                    searchValueSpecified = true,
                                                });
        }
public SearchCustomField SetValue ( string fieldId , SearchDateFieldOperator searchOp , DateTime ? value ) { return SetValue ( fieldId , value , ( ) => new SearchDateCustomField ( ) { internalId = fieldId , @operator = searchOp , operatorSpecified = true , searchValue = value . GetValueOrDefault ( ) , searchValueSpecified = true , } ) ; }
Sets the value of the specified custom field.
Sets the value of the specified custom field .
None
fieldId
string
The field id.
The field id .
searchOp
SearchDateFieldOperator
The search operator.
The search operator .
value
DateTime?
None