it should look something like this
// create a new write-in opportunity product with a manual discount applied
OpportunityProduct writeInProduct =
new
OpportunityProduct
{
OpportunityId =
new
EntityReference(Opportunity.EntityLogicalName,
_opportunityId),
IsProductOverridden =
true
,
ProductDescription =
"Example Write-in Product"
,
PricePerUnit =
new
Money(20.00m),
Quantity = 5,
ManualDiscountAmount =
new
Money(10.50m),
Tax =
new
Money(7.16m)
};
I don't know how you are creating a service or slos
I hope this helps.
If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia
http://mscrmshop.blogspot.com
http://crm2011usersettings.codeplex.com