-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I want to pull back all tImeEntry records that have a type of 1 or 2. how would i go about constructing that using an add_condition block ?
query = AutotaskAPI::QueryXML.new do |query|
query.entity = 'timeentry'
end
year_ago = (DateTime.now - 1.year).to_formatted_s(:iso8601)
query.add_condition('ticketid', 'equals', ticket_id)
query.add_condition('type', 'equals', 2) || query.add_condition('type', 'equals', 1) Metadata
Metadata
Assignees
Labels
No labels