Community
Showing results for 
Search instead for 
Do you mean 
Reply

how to add product code to ACT?

Accepted Solution Solved
Avid Listener
Posts: 83
Country: Malaysia
Accepted Solution

how to add product code to ACT?

hi all,

 

how i can add opputunities product ?

 

i try this code but i cant find fields .....

 

I can add new contact but i cant add new product code.

 

if (tabControl1.SelectedTab == tabPage3)

{

for (int i = 0; i < dataGridView3.Rows.Count; i++)

{

bool b = Convert.ToBoolean(dataGridView3.Rows[i].Cells["ImpSupp"].Value);

string itemno = Convert.ToString(dataGridView3.Rows[i].Cells["itemno"].Value);

string desp = Convert.ToString(dataGridView3.Rows[i].Cells["desp"].Value);

string unit = Convert.ToString(dataGridView3.Rows[i].Cells["unit"].Value);

string unitcost = Convert.ToString(dataGridView3.Rows[i].Cells["unitcost"].Value);

string unitprice = Convert.ToString(dataGridView3.Rows[i].Cells["unitprice"].Value);

if (b == true)

{

OpportunityProduct NewProduct;

OpportunityProductList pList;

OpportunityProductFieldDescriptor pField;

NewProduct = oFram.Products.CreateProduct() ;

NewProduct.????

NewContact.Fields["TBL_CONTACT.COMPANYNAME", true] = name;

 

Thanks.

 

 


Accepted Solutions
Solution
Accepted by topic author jeffng
‎09-25-2015 03:20 AM
Copper Super Contributor
Posts: 59
Country: USA

Re: how to add product code to ACT?

Hi Jeff,

 

The method you are looking for is:

ActFramework.Products.CreateProduct(description, id, price, cost) 

Hugo Vale
Datastream Custom Solutions
http://www.datastreamcs.com

View solution in original post


All Replies
Avid Listener
Posts: 83
Country: Malaysia

Re: how to add product code to ACT?

i dont understand lah why contact got fields and Opportunity dont have ?

i really dont know how to add records into tbl_Opportunity_product table.

 

Please someone show me . Thanks.

Solution
Accepted by topic author jeffng
‎09-25-2015 03:20 AM
Copper Super Contributor
Posts: 59
Country: USA

Re: how to add product code to ACT?

Hi Jeff,

 

The method you are looking for is:

ActFramework.Products.CreateProduct(description, id, price, cost) 

Hugo Vale
Datastream Custom Solutions
http://www.datastreamcs.com
Avid Listener
Posts: 83
Country: Malaysia

Re: how to add product code to ACT?

Hi Hugovale,

 

Thanks so much for your help. Save me a lot of time.

Copper Super Contributor
Posts: 59
Country: USA

Re: how to add product code to ACT?

Glad to hear it, I wish I saw this sooner
Hugo Vale
Datastream Custom Solutions
http://www.datastreamcs.com