Community
Showing results for 
Search instead for 
Do you mean 
Reply

how to create/update opportunity

New Member
Posts: 1
Country: Canada

how to create/update opportunity

Hi all,

 

I want to update opportunity field on the fly, but could not make it. Sample code is following:

 

tmp_field=(OpportunityFieldDescriptor)ActApp.ActFramework.Opportunities.GetFieldDescriptor("ProductNames");

tmp_field.SetValue(current_opportunity, "1234"); 

 

current_opportunity is from my search result,  I want to change product name field, but setvalue is not working at all, field still keeps the previous value.

 

I also want to create a new opportunity and fill fields one by one.

 

Thank you a lot!

 

Miles