05-06-2009 06:40 PM
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.
05-14-2009 07:08 PM
Hi Jeff,
The method you are looking for is:
ActFramework.Products.CreateProduct(description, id, price, cost)
05-08-2009 03:17 AM
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.
05-14-2009 07:08 PM
Hi Jeff,
The method you are looking for is:
ActFramework.Products.CreateProduct(description, id, price, cost)
05-14-2009 07:26 PM
Hi Hugovale,
Thanks so much for your help. Save me a lot of time.
05-14-2009 07:29 PM