Git Product home page Git Product logo

Comments (9)

trepidity avatar trepidity commented on June 11, 2024 1

You want to query all tickets?

Like this?

sb.Append ("<queryxml><entity>Ticket</entity>").Append (System.Environment.NewLine);
sb.Append ("<query><field>id<expression op=\"greaterthan\">0</expression></field></query>").Append (System.Environment.NewLine);
sb.Append ("</queryxml>").Append (System.Environment.NewLine);

from autotask-samples.

trepidity avatar trepidity commented on June 11, 2024 1

Yes, you can do multiple queries "conditions" together.

QueryXML:
<queryxml> <entity>contact</entity>
<query> <condition>
<field>firstname
<expression op=”equals”>Joe</expression>
</field> </condition>
<condition> <field>lastname
<expression op=”equals”>Smith</expression> </field>
</condition> </query>
</queryxml>

Just review whatever entity you want to query and then you can query on any of the fields that it supports.

from autotask-samples.

abonetwork avatar abonetwork commented on June 11, 2024

Thanks mate.

When i used the query u give me. It only shows the dates from 2012 not the current year.
We currenlty using Autotask, Did i missed something?
Does the query have limit, it seems the length is only 500 queries?
Thank you.

from autotask-samples.

trepidity avatar trepidity commented on June 11, 2024

Yes that is true, You have to page through the results for each 500 entries.
You could also change the query to something like createDateTime greaterThan some date.

Have you seen the API Docs about creating queries?

from autotask-samples.

abonetwork avatar abonetwork commented on June 11, 2024

Thank you so much

from autotask-samples.

abonetwork avatar abonetwork commented on June 11, 2024

How to i make this as queryxml?
"SELECT * from Ticket where CreatedDate >= 'Whole day ex.YYYY-MM-DD, will get all tickets within that day' AND 'select all ticket who have not been completed' "
Thank you

from autotask-samples.

abonetwork avatar abonetwork commented on June 11, 2024

Thank you very much.

from autotask-samples.

abonetwork avatar abonetwork commented on June 11, 2024

Hi Mate,
How can i retrieve the ticket history of a ticket and how would i get the task of a ticket?

from autotask-samples.

trepidity avatar trepidity commented on June 11, 2024

@abon22 have you looked at the Web Services API Documentation? It basically outlines all these questions. You usually have to get the Service Call, or Resource and then track down through associations to get this information.

from autotask-samples.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.