WebservicesUtils
in package
Table of Contents
- vtwsGetFieldfromFieldId() : Vtiger_Field_Model|null
- 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.
- vtwsSaveLeadRelations() : mixed
- Function used to save the lead related services with other entities Account, Contact and Potential.
- 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) : Vtiger_Field_Model|null
Parameters
- $fieldId : int
- $moduleModel : Vtiger_Module_Model
Return values
Vtiger_Field_Model|null —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(int $leadId, int $relatedId) : bool
Parameters
- $leadId : int
- $relatedId : int
-
- related entity id (contactid/accountid)
Return values
bool —true on success, false otherwise
vtwsSaveLeadRelatedProducts()
Function used to save the lead related products with other entities Account, Contact and Potential.
public
static vtwsSaveLeadRelatedProducts(int $leadId, int $relatedId, string $setype) : mixed
Parameters
- $leadId : int
- $relatedId : int
-
- related entity id (accountid/contactid/potentialid)
- $setype : string
-
- related module(Accounts/Contacts).
Return values
mixed —vtwsSaveLeadRelations()
Function used to save the lead related services with other entities Account, Contact and Potential.
public
static vtwsSaveLeadRelations(int $leadId, int $relatedId, string $setype) : mixed
Parameters
- $leadId : int
- $relatedId : int
-
- related entity id (accountid/contactid/potentialid)
- $setype : string
-
- related module(Accounts/Contacts).
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(int $leadId, int $relatedId, string $seType) : mixed
Parameters
- $leadId : int
- $relatedId : int
-
- related entity id (contactid/accountid)
- $seType : string
-
- related module(Accounts/Contacts)
Return values
mixed —vtwsTransferRelatedRecords()
The function transfers related records.
public
static vtwsTransferRelatedRecords(int $sourceRecordId, int $destinationRecordId) : mixed
Parameters
- $sourceRecordId : int
- $destinationRecordId : int