public class Contact extends Object
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 and Description |
---|
Contact() |
Modifier and Type | Method and Description |
---|---|
Contact |
addSalesInfo(Collection<SalesInfo> salesInfos)
Add salesInfo records into contact's salesInfo Function.
|
Contact |
deleteSalesInfo(Collection<BusinessObject> salesInfos)
Remove salesInfo records into contact's salesInfo Function.
|
Object |
getContactDataAttributeValue(String attributeURI)
To get the value of a contact data attribute by attribute URI.
|
String |
getContactRelationAttributeErpId(String attributeURI)
To get the ERPID of a contact relation attribute by attribute URI.
|
String |
getContactRelationAttributeObjectId(String attributeURI)
To get the object Id of a contact relation attribute by attribute URI.
|
String |
getContactRelationAttributeObjectName(String attributeURI)
To get the object name of a contact relation attribute by attribute URI.
|
String |
getContactRelationAttributeURI(String attributeURI)
To get the URI of a contact relation attribute by attribute URI.
|
String |
getContactURI()
Retrieves the URI of this Contact
|
Collection<BusinessObject> |
getSalesInfo()
Retrieves the salesInfo of the contact.
|
Contact |
setContactDataAttribute(String attributeURI,
Object value)
To set a value for the contact data attribute.
|
Contact |
setContactRelationAttribute(String attributeURI,
String valueURI)
To set a value for the contact relation attribute.
|
public Contact addSalesInfo(Collection<SalesInfo> salesInfos)
salesInfo.
- The sales info to add into a contact.Contact
instance.public Contact deleteSalesInfo(Collection<BusinessObject> salesInfos)
salesInfo.
- The sales info records to remove from contact.contact
instance.public Object getContactDataAttributeValue(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the contact data attribute.IMCException
public String getContactRelationAttributeErpId(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the quote relation attribute.IMCException
public String getContactRelationAttributeObjectId(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the contact relation attribute.IMCException
public String getContactRelationAttributeObjectName(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the contact relation attribute.IMCException
public String getContactRelationAttributeURI(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the contact relation attribute.IMCException
public String getContactURI()
public Collection<BusinessObject> getSalesInfo() throws IMCException
IMCException
public Contact setContactDataAttribute(String attributeURI, Object value) throws IMCException
attributeURI
- as String. The URI of the contact data attribute.value
- as Object. The value for the contact data attribute.Contact
instance.IMCException
- the platform exceptionpublic Contact setContactRelationAttribute(String attributeURI, String valueURI) throws IMCException
attributeURI
- as String. The URI of the contact relation attribute.valueURI
- as Object. The value for the contact relation attribute.Contact
instance.IMCException
- the platform exception