Community
Showing results for 
Search instead for 
Do you mean 
Reply

Opportunity Total doesn't increase when adding Products

Accepted Solution Solved
Copper Contributor
Posts: 13
Country: Australia
Accepted Solution

Opportunity Total doesn't increase when adding Products

Hi,

 

When I add an Opportunity Product via the API the linked Opportunity Total price doen't update until we go into ACT and open the product and then select "Ok". I do not change anything in the Product box just select "Ok",

 

This is ACT! V20 using latest API.

 

Json to create Opportunity Product, I have tested with no Product Total and with Product Total ie 2500 with no difference.

 

{
  "id": "",
  "name": "Test Product 6",
  "cost": 300,
  "createDate": "2018-11-05T13:03:00.805Z",
  "discount": 0,
  "discountPrice": 0,
  "editDate": "2018-11-05T13:03:00.805Z",
  "price": 500,
  "quantity": 5,
  "total": 2500,
  "customFields": {},
  "created": "2018-11-05T13:03:00.805Z",
  "edited": "2018-11-05T13:03:00.805Z",
  "editedBy": "Test User",
  "recordOwner": "Test User",
  "recordManager": "Test User"
}

 

Shows Product 6 added bit Total hasn't changed.

 

Capture.JPG

 

Post opening product and selecting "Ok"

 

 

 

Capture2.JPG


Accepted Solutions
Highlighted
Solution
Accepted by topic author antvc
‎08-03-2019 08:13 PM
Copper Contributor
Posts: 13
Country: Australia

Re: Opportunity Total doesn't increase when adding Products

I have tested again after feedback from swiftpage and it does update the Opportunity total field when posting product as below.

 

{
  "name": "Test 1",
  "cost": 100,
  "price": 200,
  "quantity": 10,
  "total": 2000
}

 

View solution in original post


All Replies
Copper Contributor
Posts: 13
Country: Australia

Re: Opportunity Total doesn't increase when adding Products

The Opportunity Total price will update if you touch the Opportunity or any Product that is associated with the Opportunity.

 

I can send a PATCH

act.web.api/api/opportunities/7182d5bf-c795-47fd-a7b6-ff1fff31c0fd

 

with JSON

 

{
  "id": "7182d5bf-c795-47fd-a7b6-ff1fff31c0fd"
}

 

and the Total price updates however I'm hoping there is a better method.

Copper Contributor
Posts: 13
Country: Australia

Re: Opportunity Total doesn't increase when adding Products

I was sure that sending a Patch worked yesterday however is failing today.

 

Also tried PATCH Opportunity Product get a 200 however no update of Opportunity.

 

Opportunity Total price only seems to be updating when selecting the product in the UI and clicking OK.

 

 

Copper Contributor
Posts: 13
Country: Australia

Re: Opportunity Total doesn't increase when adding Products

I presume that the UI triggers a procedure of some sort. Anyone with any idea of what I could try a PATCH against via the API to trigger the procedure that opening and closing the associated product via the UI triggers?

Highlighted
Solution
Accepted by topic author antvc
‎08-03-2019 08:13 PM
Copper Contributor
Posts: 13
Country: Australia

Re: Opportunity Total doesn't increase when adding Products

I have tested again after feedback from swiftpage and it does update the Opportunity total field when posting product as below.

 

{
  "name": "Test 1",
  "cost": 100,
  "price": 200,
  "quantity": 10,
  "total": 2000
}