Friday, February 5, 2016

Closing an opportunity Programmatically

Entity opptyCloseObj = new Entity("opportunityclose");

opptyCloseObj.Attributes.Add("opportunityid", new EntityReference("opportunity", OpptyID)); opptyCloseObj.Attributes.Add("actualend", DateTime.Now);
opptyCloseObj.Attributes.Add("actualrevenue", ActualopptyAmount);

 var lostOpportunity = new LoseOpportunityRequest
      OpportunityClose = opptyCloseObj,
      Status = new OptionSetValue(MIGRATED_STATUS_CODE) // Expired

No comments:

Post a Comment

Get files of last hour in Azure Data Factory

  Case I have a Data Factory pipeline that should run each hour and collect all new files added to the data lake since the last run. What is...