public class Opportunity extends Object
Inside the script, an instance of this class, containing the data of the opportunity that the script will be run on, will be provided automatically and can be accessed as a variable named opportunity
Constructor and Description |
---|
Opportunity() |
Modifier and Type | Method and Description |
---|---|
Opportunity |
addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords)
Add partner function records into opportunity's Partner Function.
|
Opportunity |
addSalesInfo(Collection<SalesInfo> opportunitySalesInfo) |
Opportunity |
deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords)
remove partner function records into opportunity's Partner Function.
|
void |
deleteSalesInfo(Collection<SalesInfo> salesInfos)
Remove salesInfo records into opportunity's salesInfo Function.
|
Object |
getOpportunityDataAttributeValue(String attributeURI)
To get the value of a opportunity data attribute by attribute URI.
|
String |
getOpportunityRelationAttributeURI(String attributeURI) |
String |
getOpportunityURI() |
Collection<BusinessObject> |
getPartnerFunction() |
Opportunity |
setOpportunityDataAttribute(String attributeURI,
Object value)
To set a value for the opportunity data attribute.
|
Opportunity |
setOpportunityRelationAttribute(String attributeURI,
String valueURI)
To set a value for the opportunity relation attribute.
|
String |
toString()
Returns a string representation of the opportunity
|
public Opportunity addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords)
partnerFunctionRecords.
- The partner function records to add into a
opportunity.Opportunity
instance.public Opportunity addSalesInfo(Collection<SalesInfo> opportunitySalesInfo)
public Opportunity deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords)
partnerFunctionRecords.
- The partner function records to remove
into a opportunity.opportunity
instance.public void deleteSalesInfo(Collection<SalesInfo> salesInfos)
salesInfo.
- The sales info records to remove from opportunity.public Object getOpportunityDataAttributeValue(String attributeURI) throws IMCException
attributeURI
- as String. The URI of the opportunity data attribute.IMCException
public String getOpportunityRelationAttributeURI(String attributeURI) throws IMCException
IMCException
public String getOpportunityURI()
public Collection<BusinessObject> getPartnerFunction() throws IMCException
IMCException
public Opportunity setOpportunityDataAttribute(String attributeURI, Object value) throws IMCException
attributeURI
- as String. The URI of the opportunity data attribute.value
- as Object. The value for the opportunity data attribute.Opportunity
IMCException
- the platform exceptionpublic Opportunity setOpportunityRelationAttribute(String attributeURI, String valueURI) throws IMCException
attributeURI
- as String. The URI of the opportunity relation
attribute.valueURI
- as Object. The value for the opportunity relation
attribute.Opportunity
IMCException
- the platform exception