public class Account extends Object
Inside the script, an instance of this class, containing the data of the account that the script will be run on, will be provided automatically and can be accessed as a variable named account
| Modifier and Type | Method and Description |
|---|---|
Account |
addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords)
Add partner function records into account's Partner Function.
|
Account |
addSalesInfo(Collection<SalesInfo> salesInfos)
Add salesInfo records into account's salesInfo Function.
|
Account |
deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords)
Remove partner function records into account's Partner Function.
|
Account |
deleteSalesInfo(Collection<BusinessObject> salesInfos)
Remove salesInfo records into account's salesInfo Function.
|
Collection<String> |
getAccountAddresses()
gets the list of Addresses for the Account
|
Object |
getAccountDataAttributeValue(String attributeURI)
To get the value of a account data attribute by attribute URI.
|
String |
getAccountRegionRelationAttributeURI(String attributeURI)
To get the URI of a account relation attribute by attribute URI.
|
String |
getAccountRelationAttributeErpId(String attributeURI)
To get the ERPID of a account relation attribute by attribute URI.
|
String |
getAccountRelationAttributeObjectId(String attributeURI)
To get the object Id of a account relation attribute by attribute URI.
|
String |
getAccountRelationAttributeObjectName(String attributeURI)
To get the object name of a account relation attribute by attribute URI.
|
String |
getAccountRelationAttributeURI(String attributeURI)
To get the URI of a account relation attribute by attribute URI.
|
String |
getAccountURI()
Retrieves the URI of this account
|
Collection<BusinessObject> |
getContacts()
Retrieves the contacts of the account.
|
Collection<BusinessObject> |
getPartnerFunctions()
Retrieves the partner functions of the account.
|
Collection<BusinessObject> |
getSalesInfo()
Retrieves the salesInfo of the account.
|
void |
setAccountAddressDataAttribute(String addressURI,
String attributeURI,
Object value)
sets the data attributes for the address of an account
|
void |
setAccountAddressRelationAttribute(String addressURI,
String attributeURI,
String value)
sets the relation attributes for the address of an account
|
Account |
setAccountDataAttribute(String attributeURI,
Object value)
To set a value for the account data attribute.
|
Account |
setAccountRelationAttribute(String attributeURI,
String valueURI)
To set a value for the account relation attribute.
|
String |
toString()
Returns a string representation of the account
|
public Account addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords)
partnerFunctionRecords. - The partner function records to add into a
account.Account instance.public Account addSalesInfo(Collection<SalesInfo> salesInfos)
salesInfo. - The sales info to add into a account.Account instance.public Account deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords)
partnerFunctionRecords. - The partner function records to remove
into a account.Account instance.public Account deleteSalesInfo(Collection<BusinessObject> salesInfos)
salesInfo. - The sales info records to remove from account.Account instance.public Collection<String> getAccountAddresses() throws IMCException
IMCExceptionpublic Object getAccountDataAttributeValue(String attributeURI) throws IMCException
attributeURI - as String. The URI of the account data attribute.IMCExceptionpublic String getAccountRegionRelationAttributeURI(String attributeURI) throws IMCException
attributeURI - as String. The URI of the account relation attribute.IMCExceptionpublic String getAccountRelationAttributeErpId(String attributeURI) throws IMCException
attributeURI - as String. The URI of the quote relation attribute.IMCExceptionpublic String getAccountRelationAttributeObjectId(String attributeURI) throws IMCException
attributeURI - as String. The URI of the account relation attribute.IMCExceptionpublic String getAccountRelationAttributeObjectName(String attributeURI) throws IMCException
attributeURI - as String. The URI of the account relation attribute.IMCExceptionpublic String getAccountRelationAttributeURI(String attributeURI) throws IMCException
attributeURI - as String. The URI of the account relation attribute.IMCExceptionpublic String getAccountURI()
public Collection<BusinessObject> getContacts() throws IMCException
IMCExceptionpublic Collection<BusinessObject> getPartnerFunctions() throws IMCException
IMCExceptionpublic Collection<BusinessObject> getSalesInfo() throws IMCException
IMCExceptionpublic void setAccountAddressDataAttribute(String addressURI, String attributeURI, Object value) throws IMCException
addressURI - as String. The URI of the address belonging to an
accountattributeURI - as String. The URI of the Data Attribute to be
updatedvalue - The value to be assigned to the Data attribute for the
address of an accountIMCExceptionpublic void setAccountAddressRelationAttribute(String addressURI, String attributeURI, String value) throws IMCException
addressURI - as String. The URI of the address belonging to an
accountattributeURI - as String. The URI of the relation Attribute to be
updatedvalue - The value to be assigned to the relation attribute for the
address of an accountIMCExceptionpublic Account setAccountDataAttribute(String attributeURI, Object value) throws IMCException
attributeURI - as String. The URI of the account data attribute.value - as Object. The value for the account data attribute.Account instance.IMCException - the platform exceptionpublic Account setAccountRelationAttribute(String attributeURI, String valueURI) throws IMCException
attributeURI - as String. The URI of the account relation attribute.valueURI - as Object. The value for the account relation attribute.Account instance.IMCException - the platform exception