Documentation

WebservicesUtils
in package

Table of Contents

vtwsGetFieldfromFieldId()  : null|Vtiger_Field_Model
vtwsGetFieldfromFieldId.
vtwsGetRelatedActivities()  : mixed
Function used to get the lead related activities with other entities Account and Contact.
vtwsGetRelatedNotesAttachments()  : mixed
Function used to get the lead related Notes and Attachments with other entities Account, Contact and Potential.
vtwsSaveLeadRelatedCampaigns()  : bool
Function used to save the lead related Campaigns with Contact.
vtwsSaveLeadRelatedProducts()  : mixed
Function used to save the lead related products with other entities Account, Contact and Potential $leadid - leadid $relatedid - related entity id (accountid/contactid/potentialid) $setype - related module(Accounts/Contacts).
vtwsSaveLeadRelations()  : mixed
Function used to save the lead related services with other entities Account, Contact and Potential $leadid - leadid $relatedid - related entity id (accountid/contactid/potentialid) $setype - related module(Accounts/Contacts).
vtwsTransferComments()  : mixed
The function transfers the comments.
vtwsTransferLeadRelatedRecords()  : mixed
Function used to transfer all the lead related records to given Entity(Contact/Account) record.
vtwsTransferRelatedRecords()  : mixed
The function transfers related records.

Methods

vtwsGetFieldfromFieldId()

vtwsGetFieldfromFieldId.

public static vtwsGetFieldfromFieldId(int $fieldId, Vtiger_Module_Model $moduleModel) : null|Vtiger_Field_Model
Parameters
$fieldId : int
$moduleModel : Vtiger_Module_Model
Return values
null|Vtiger_Field_Model

vtwsGetRelatedActivities()

Function used to get the lead related activities with other entities Account and Contact.

public static vtwsGetRelatedActivities(int $leadId, int $accountId, int $contactId, int $relatedId) : mixed
Parameters
$leadId : int
  • lead entity id
$accountId : int
  • related account id
$contactId : int
  • related contact id
$relatedId : int
  • related entity id to which the records need to be transferred
Return values
mixed

vtwsGetRelatedNotesAttachments()

Function used to get the lead related Notes and Attachments with other entities Account, Contact and Potential.

public static vtwsGetRelatedNotesAttachments(int $id, int $relatedId) : mixed
Parameters
$id : int
  • leadid
$relatedId : int
  • related entity id (accountid / contactid)
Return values
mixed

vtwsSaveLeadRelatedCampaigns()

Function used to save the lead related Campaigns with Contact.

public static vtwsSaveLeadRelatedCampaigns(mixed $leadId, mixed $relatedId) : bool
Parameters
$leadId : mixed
$relatedId : mixed
Return values
bool

true on success, false otherwise

vtwsSaveLeadRelatedProducts()

Function used to save the lead related products with other entities Account, Contact and Potential $leadid - leadid $relatedid - related entity id (accountid/contactid/potentialid) $setype - related module(Accounts/Contacts).

public static vtwsSaveLeadRelatedProducts(mixed $leadId, mixed $relatedId, mixed $setype) : mixed
Parameters
$leadId : mixed
$relatedId : mixed
$setype : mixed
Return values
mixed

vtwsSaveLeadRelations()

Function used to save the lead related services with other entities Account, Contact and Potential $leadid - leadid $relatedid - related entity id (accountid/contactid/potentialid) $setype - related module(Accounts/Contacts).

public static vtwsSaveLeadRelations(mixed $leadId, mixed $relatedId, mixed $setype) : mixed
Parameters
$leadId : mixed
$relatedId : mixed
$setype : mixed
Return values
mixed

vtwsTransferComments()

The function transfers the comments.

public static vtwsTransferComments(int $sourceRecordId, int $destinationRecordId) : mixed
Parameters
$sourceRecordId : int
$destinationRecordId : int
Return values
mixed

vtwsTransferLeadRelatedRecords()

Function used to transfer all the lead related records to given Entity(Contact/Account) record.

public static vtwsTransferLeadRelatedRecords(mixed $leadId, mixed $relatedId, mixed $seType) : mixed
Parameters
$leadId : mixed
$relatedId : mixed
$seType : mixed
Return values
mixed

vtwsTransferRelatedRecords()

The function transfers related records.

public static vtwsTransferRelatedRecords(int $sourceRecordId, int $destinationRecordId) : mixed
Parameters
$sourceRecordId : int
$destinationRecordId : int
Return values
mixed

        

Search results