discount EntityType

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Description: Price reduction made from the list price of a product or service based on the quantity purchased.

Entity Set path:[organization URI]/api/data/v8.2/discounts

Base Type: crmbaseentity EntityType

Display Name: Discount

Primary Key: discountid

Properties

Lookup Properties

Single-valued navigation properties

Collection-valued navigation properties

Properties

Properties represent fields of data stored in the entity. Some properties are read-only.

Name

Type

Details

amount

Edm.Decimal

Description: Amount of the discount, specified either as a percentage or as a monetary amount.

Display Name: Amount

amount_base

Edm.Decimal

Description: Shows the Amount field converted to the system's default base currency, if specified as a fixed amount. The calculation uses the exchange rate specified in the Currencies area.

Display Name: Amount (Base)

Read-only property

createdon

Edm.DateTimeOffset

Description: Date and time when the discount was created.

Display Name: Created On

Read-only property

discountid

Edm.Guid

Description: Unique identifier of the discount.

Display Name: Discount

exchangerate

Edm.Decimal

Description: Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency.

Display Name: Exchange Rate

Read-only property

highquantity

Edm.Decimal

Description: Upper boundary for the quantity range to which a particular discount can be applied.

Display Name: End Quantity

importsequencenumber

Edm.Int32

Description: Unique identifier of the data import or data migration that created this record.

Display Name: Import Sequence Number

isamounttype

Edm.Boolean

Description: Specifies whether the discount is specified as a monetary amount or a percentage.

Default Options:

1 : Yes
0 : No

Display Name: Amount Type

Read-only property

lowquantity

Edm.Decimal

Description: Lower boundary for the quantity range to which a particular discount is applied.

Display Name: Begin Quantity

modifiedon

Edm.DateTimeOffset

Description: Date and time when the discount was last modified.

Display Name: Modified On

Read-only property

organizationid

Edm.Guid

Description: Unique identifier of the organization associated with the discount.

Display Name: Organization

Read-only property

overriddencreatedon

Edm.DateTimeOffset

Description: Date and time that the record was migrated.

Display Name: Record Created On

percentage

Edm.Decimal

Description: Percentage discount value.

Display Name: Percentage

versionnumber

Edm.Int64

Description: Version number of the discount.

Display Name: Version Number

Read-only property

Lookup Properties

Lookup properties are read-only, computed properties which contain entity primary key Edm.Guid data for one or more corresponding single-valued navigation properties. More information: Lookup properties and Retrieve data about lookup properties

Name

Single-valued navigation property

Description

_createdby_value

createdby

Unique identifier of the user who created the discount.

_createdonbehalfby_value

createdonbehalfby

Unique identifier of the delegate user who created the discount.

_discounttypeid_value

discounttypeid

Unique identifier of the discount list associated with the discount.

_modifiedby_value

modifiedby

Unique identifier of the user who last modified the discount.

_modifiedonbehalfby_value

modifiedonbehalfby

Unique identifier of the delegate user who last modified the discount.

_transactioncurrencyid_value

transactioncurrencyid

Choose the local currency for the record to make sure budgets are reported in the correct currency.

Single-valued navigation properties

Single-valued navigation properties represent lookup fields where a single entity can be referenced. Each single-valued navigation property has a corresponding partner collection-valued navigation property on the related entity.

Name

Type

Partner

createdby

systemuser EntityType

lk_discountbase_createdby

createdonbehalfby

systemuser EntityType

lk_discount_createdonbehalfby

discounttypeid

discounttype EntityType

discount_type_discounts

modifiedby

systemuser EntityType

lk_discountbase_modifiedby

modifiedonbehalfby

systemuser EntityType

lk_discount_modifiedonbehalfby

transactioncurrencyid

transactioncurrency EntityType

transactioncurrency_discount

Collection-valued navigation properties

Collection-valued navigation properties represent collections of entities which may represent either a one-to-many (1:N) or many-to-many (N:N) relationship between the entities.

Name

Type

Partner

Discount_AsyncOperations

asyncoperation EntityType

regardingobjectid_discount

Discount_BulkDeleteFailures

bulkdeletefailure EntityType

regardingobjectid_discount

Discount_SyncErrors

syncerror EntityType

regardingobjectid_discount_syncerror

See Also

Use the Microsoft Dynamics 365 Web API
Web API Action Reference
Web API Function Reference
Web API Query Function Reference
Web API EnumType Reference
Web API ComplexType Reference
Web API Metadata EntityType Reference

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright