Package com.imc.iss.groovy.contact
Class Contact
java.lang.Object
com.imc.iss.groovy.contact.Contact
This is a class representing a Contact for use by groovy scripts
Inside the script, an instance of this class, containing the data of the contact that the script will be run on, will be provided automatically and can be accessed as a variable named contact
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSalesInfo(Collection<SalesInfo> salesInfos) Add salesInfo records into contact's salesInfo Function.deleteSalesInfo(Collection<BusinessObject> salesInfos) Remove salesInfo records into contact's salesInfo Function.getContactDataAttributeValue(String attributeURI) To get the value of a contact data attribute by attribute URI.getContactRelationAttributeErpId(String attributeURI) To get the ERPID of a contact relation attribute by attribute URI.getContactRelationAttributeObjectId(String attributeURI) To get the object Id of a contact relation attribute by attribute URI.getContactRelationAttributeObjectName(String attributeURI) To get the object name of a contact relation attribute by attribute URI.getContactRelationAttributeURI(String attributeURI) To get the URI of a contact relation attribute by attribute URI.Retrieves the URI of this ContactRetrieves the salesInfo of the contact.setContactDataAttribute(String attributeURI, Object value) To set a value for the contact data attribute.setContactRelationAttribute(String attributeURI, String valueURI) To set a value for the contact relation attribute.
-
Constructor Details
-
Contact
public Contact()
-
-
Method Details
-
addSalesInfo
Add salesInfo records into contact's salesInfo Function.- Parameters:
salesInfo- . The sales info to add into a contact.- Returns:
- The
Contactinstance.
-
deleteSalesInfo
Remove salesInfo records into contact's salesInfo Function.- Parameters:
salesInfo- . The sales info records to remove from contact.- Returns:
- The
contactinstance.
-
getContactDataAttributeValue
To get the value of a contact data attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the contact data attribute.- Returns:
- the value of the contact data attribute as Object.
- Throws:
IMCException
-
getContactRelationAttributeErpId
To get the ERPID of a contact relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the quote relation attribute.- Returns:
- the ERPId of the contact relation attribute as String.
- Throws:
IMCException
-
getContactRelationAttributeObjectId
To get the object Id of a contact relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the contact relation attribute.- Returns:
- the objectId of the contact relation attribute as String.
- Throws:
IMCException
-
getContactRelationAttributeObjectName
To get the object name of a contact relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the contact relation attribute.- Returns:
- the object name of the contact relation attribute as String.
- Throws:
IMCException
-
getContactRelationAttributeURI
To get the URI of a contact relation attribute by attribute URI.- Parameters:
attributeURI- as String. The URI of the contact relation attribute.- Returns:
- the object URI of the contact relation attribute as String.
- Throws:
IMCException
-
getContactURI
Retrieves the URI of this Contact- Returns:
- The Contact URI as String
-
getSalesInfo
Retrieves the salesInfo of the contact.- Returns:
- Collection <BusinessObject>.
- Throws:
IMCException
-
setContactDataAttribute
To set a value for the contact data attribute.- Parameters:
attributeURI- as String. The URI of the contact data attribute.value- as Object. The value for the contact data attribute.- Returns:
- The
Contactinstance. - Throws:
IMCException- the platform exception
-
setContactRelationAttribute
public Contact setContactRelationAttribute(String attributeURI, String valueURI) throws IMCException To set a value for the contact relation attribute.- Parameters:
attributeURI- as String. The URI of the contact relation attribute.valueURI- as Object. The value for the contact relation attribute.- Returns:
- The
Contactinstance. - Throws:
IMCException- the platform exception
-