You are here:
InsPolicyService:createTransaction
Use this service to create a transaction on a target policy.
Method: createTransaction
How It Works
-
The service takes the
assetIdorpolicyIdfrom the input JSON and sets it as theAssetId__cfield on the transaction. -
Takes the
transactionTypefrom the input JSON and sets it as theType__cfield on the transaction. -
Takes the
effectiveDatefrom the input JSON and sets it as thePostDate__candTransactionDate__cfields on the transaction. -
(Optional) Takes the amount from the input JSON and sets it as the
Amount__cfield on the transaction. -
(FSC only) Takes a
postDataDRBundleNameor apostDataCustomClassNameOmnistudio Data Mapper as an input. -
(Optional) Takes the
transactionNamefrom the input JSON and sets it as the Name field on the transaction. -
(Optional) Takes the
additionalFieldsmap from the input JSON and sets any transaction fields that are specified in the map. -
(Non-FSC) Creates a new
AssetTransaction_crecord and returns the record Id in thetransactionIdfield.(FSC) Creates a new
InsurancePolicyTransactionorInsurancePolicyTransaction_crecord and returns the record Id in thetransactionIdfield. -
(FSC only) Outputs data in the
postDataDRBundleNameyou specify. -
If
calculateCommissionistrue, the service callsInsurancePolicyService.calculateAndSaveCommission, which prepares the input for theInsCommissionService.calculateandInsCommissionService.saveCommissionsservices. After the calculate service processes the input, the save service stores the calculated value inTotalCommissionAmount.
Remote Options
Input JSON
This service looks for the following key/value pairs:
-
assetIdorpolicyIdId of policy on which the transaction will be created
-
transactionTypeType of transaction
-
effectiveDatePost date and transaction date of transaction
-
amount(Optional) Transaction amount
-
transactionName(Optional) Name of transaction. If not provided, the name is defaulted to the transaction type.
-
additionalFields(Optional) Map of additional transaction fields to be set
{
"assetId": "02i5A000005iF1MQAU",
"transactionType": "Premium Paid",
"effectiveDate": "2018-10-04",
"amount": "100",
"transactionName": "My Transaction",
"additionalFields": {
"StatementId__c": "a4f5A000001QFE0QAO"
}
}
