Trendsic Platform Service

<back to all web services

PursuitListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/pursuits
"use strict";
export class PursuitActivity {
    /** @param {{PursuitActivityID?:number,PursuitID?:number,Kind?:string,Label?:string,Detail?:string,Actor?:string,CreatedAt?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    PursuitActivityID;
    /** @type {number} */
    PursuitID;
    /** @type {string} */
    Kind;
    /** @type {string} */
    Label;
    /** @type {string} */
    Detail;
    /** @type {string} */
    Actor;
    /** @type {?string} */
    CreatedAt;
}
export class Pursuit {
    /** @param {{PursuitID?:number,PursuitUID?:string,PursuitNumber?:string,Name?:string,ClientOwner?:string,WorkType?:string,Solicitation?:string,Location?:string,Scope?:string,Stage?:string,Outcome?:string,BidValue?:number,EstCost?:number,WinProbability?:number,CostOfPursuit?:number,DueDate?:string,EstimatorRfpRef?:string,AwardedProjectID?:number,OpenedAt?:string,SubmittedAt?:string,DecidedAt?:string,CreatedBy?:string,CreatedAt?:string,UpdatedAt?:string,DaysOpen?:number,WeightedValue?:number,Activity?:PursuitActivity[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    PursuitID;
    /** @type {string} */
    PursuitUID;
    /** @type {string} */
    PursuitNumber;
    /** @type {string} */
    Name;
    /** @type {string} */
    ClientOwner;
    /** @type {string} */
    WorkType;
    /** @type {string} */
    Solicitation;
    /** @type {string} */
    Location;
    /** @type {string} */
    Scope;
    /** @type {string} */
    Stage;
    /** @type {string} */
    Outcome;
    /** @type {number} */
    BidValue;
    /** @type {number} */
    EstCost;
    /** @type {number} */
    WinProbability;
    /** @type {number} */
    CostOfPursuit;
    /** @type {?string} */
    DueDate;
    /** @type {string} */
    EstimatorRfpRef;
    /** @type {?number} */
    AwardedProjectID;
    /** @type {?string} */
    OpenedAt;
    /** @type {?string} */
    SubmittedAt;
    /** @type {?string} */
    DecidedAt;
    /** @type {string} */
    CreatedBy;
    /** @type {?string} */
    CreatedAt;
    /** @type {?string} */
    UpdatedAt;
    /** @type {number} */
    DaysOpen;
    /** @type {number} */
    WeightedValue;
    /** @type {PursuitActivity[]} */
    Activity = [];
}
export class PursuitPipelineSummary {
    /** @param {{ActivePursuits?:number,PipelineValue?:number,WeightedValue?:number,WonCount?:number,DecidedCount?:number,WinRate?:number,ClosingThisWeek?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ActivePursuits;
    /** @type {number} */
    PipelineValue;
    /** @type {number} */
    WeightedValue;
    /** @type {number} */
    WonCount;
    /** @type {number} */
    DecidedCount;
    /** @type {number} */
    WinRate;
    /** @type {number} */
    ClosingThisWeek;
}
export class PursuitListResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Pursuits?:Pursuit[],Summary?:PursuitPipelineSummary}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {Pursuit[]} */
    Pursuits = [];
    /** @type {PursuitPipelineSummary} */
    Summary;
}
export class PursuitListRequest {
    constructor(init) { Object.assign(this, init) }
}

JavaScript PursuitListRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/pursuits HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PursuitListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Pursuits>
    <Pursuit>
      <Activity>
        <PursuitActivity>
          <Actor>String</Actor>
          <CreatedAt>0001-01-01T00:00:00</CreatedAt>
          <Detail>String</Detail>
          <Kind>String</Kind>
          <Label>String</Label>
          <PursuitActivityID>0</PursuitActivityID>
          <PursuitID>0</PursuitID>
        </PursuitActivity>
      </Activity>
      <AwardedProjectID>0</AwardedProjectID>
      <BidValue>0</BidValue>
      <ClientOwner>String</ClientOwner>
      <CostOfPursuit>0</CostOfPursuit>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CreatedBy>String</CreatedBy>
      <DaysOpen>0</DaysOpen>
      <DecidedAt>0001-01-01T00:00:00</DecidedAt>
      <DueDate>0001-01-01T00:00:00</DueDate>
      <EstCost>0</EstCost>
      <EstimatorRfpRef>String</EstimatorRfpRef>
      <Location>String</Location>
      <Name>String</Name>
      <OpenedAt>0001-01-01T00:00:00</OpenedAt>
      <Outcome>String</Outcome>
      <PursuitID>0</PursuitID>
      <PursuitNumber>String</PursuitNumber>
      <PursuitUID>00000000-0000-0000-0000-000000000000</PursuitUID>
      <Scope>String</Scope>
      <Solicitation>String</Solicitation>
      <Stage>String</Stage>
      <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <WeightedValue>0</WeightedValue>
      <WinProbability>0</WinProbability>
      <WorkType>String</WorkType>
    </Pursuit>
  </Pursuits>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Summary>
    <ActivePursuits>0</ActivePursuits>
    <ClosingThisWeek>0</ClosingThisWeek>
    <DecidedCount>0</DecidedCount>
    <PipelineValue>0</PipelineValue>
    <WeightedValue>0</WeightedValue>
    <WinRate>0</WinRate>
    <WonCount>0</WonCount>
  </Summary>
</PursuitListResponse>