searchOpportunities

Purpose:

This method used to get the number of opportunities in Apptivo based on the email address.

Request URL:

https://api.apptivo.com/app/dao/v6/opportunities?a=getAllByAdvancedSearch&numRecords=NUM_OF_RECORDS&searchData={SEARCH_DATA}&multiSelectData={}&apiKey=API_KEY&accesKey=ACCESS_KEY

Request Parameters:

Parameter Data Type Description
SEARCH_DATA search data with Json format please see the sample request URL
NUM_OF_RECORDS number of records to return
SESSION_KEY Apptivo session key from username and password

* – Mandatory parameters

Output:

This will return the number of opportunities with JSON format.

Sample Request URL:

https://www.apptivo.com/app/dao/v6/opportunities?a=getAllByAdvancedSearch
&startIndex=0
&numRecords=50
&sortColumn=opportunityName.sortable
&sortDir=asc
&searchData:{"opportunityCustomer":"","opportunityName":"Test","opportunityCustomerId":null,"probability":null,"probabilityTo":null,"opportunityContact":"","opportunityContactId":null,"closeDate":"","closeDateTo":"","lastContactedDateFrom":"","lastContactedDateTo":"","nextStep":"","amount":null,"amountTo":null,"campaignName":"","campaignId":null,"description":"","followUpDescription":"","createdByName":"","lastUpdatedByName":"","territoryName":"","territoryId":null,"labels":[],"assignedToObjectRefName":"","currencyCode":null,"customAttributes":[]}
multiSelectData={"salesStageIds":[],"opportunityTypeIds":[],"leadSourceIds":[],"marketIds":[],"segmentIds":[],"salesCycleIds":[]}
&objectId=11
&status=0