Home Search

DriveWorks Pro 22
Create a New Opportunity Line Item in Salesforce

Send Feedback

Create A New Opportunity Line Item In SalesForce

This Specification Macro Task creates a New Opportunity in SalesForce.


Property NameDescription
TitleChanges the Title (not the name) of the Task.
Sales PriceThis is the Sales Price of the Product (Required).
List PriceThis is the List Price of the Product (Required).
QuantityThis is the quantity of this line item for the opportunity (Required).
DescriptionThis is the Description of the Line Item, as text (Required).
Opportunity IdThis is the ID of the opportunity, as text (Required).
Price Book Entry IDThis is the id of the price book entry, as text (Required).
Custom Data

Data for custom fields in the format CustField1=Custvalue1|CustField2=CustValue2 (Not Required).

For custom fields, created in SalesForce, the end of the field name is to be suffixed with __c.

For example:


Note - there are two underscores before the c.

Return ConstantThe name of the Constant that the new Account ID will be posted to.
For more information on permitted Entity Names (Standard Objects) and the Custom Data (Standard Fields) that are required, please see:

Salesforce SOAP API Developer Guide.


When this Task is added the properties are static. To be able to build rules on a static properties see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleExample ResultMeaning
Sales PriceDWVariableQuoteLineItem1Total$5750.00The Sale Price of the Opportunity Line Item.
List PriceDWVariableQuoteLineItem1List$3475.00The List Price of the Opportunity Line Item.
QuantityQuantityReturn12The Quantity of the Line Item
DescriptionDWVariableDescriptionSecurity Door, Single, Left Hand, 2200h x 910w.The Description of the Line Item.
Opportunity Id"0061t00000Fz0WUAAZ"0061t00000Fz0WUAAZThe Opportunity ID.
Price Book Entry ID"01u1t000002XpBJAA0"01u1t000002XpBJAA0The Price Book Entry ID.
Custom Data"DateAdded__c="&Text(Date(),"yyy-mm-dd")DateAdded__c=2019/09/31

Custom field suffix

Please see the caution for the Custom Data property in the Properties table above, regarding using a suffix for Custom Fields.

Return ConstantDWConstantOppLineItemDWConstantOppLineItemThe Account ID will be reported to this constant

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:


  • The line item was created in Salesforce.

Success with Warnings

  • N/A - should never be fulfilled.

Failed (one of the following occurred)

  • Connection with Salesforce could not be established (For example incorrect Salesforce username specified in SalesForceUsername field).
  • Task exited with error (For example incorrect field name specified in a property field).

Data Outputs

Record ID - the task will return the Record ID of the entity that has been created or updated.