If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
I need some support on opportunity age calculation which is now working perfectly. Thing is, I want to stop the age calculation if opportunity stage change to closed won or closed lost.
Hi,
I want a field which is to show age of a particular opportunity with dynamic logic. opportunity age field read only and should update automatically ?? how it can be done ?
any help ??
I need some support on opportunity age calculation which is now working perfectly. Thing is, I want to stop the age calculation if opportunity stage change to closed won or closed lost.
Hi,
I want a field which is to show age of a particular opportunity with dynamic logic. opportunity age field read only and should update automatically ?? how it can be done ?
any help ??
"select": "DATEDIFF(CASE WHEN opportunity.status = 'closed won' THEN opportunity.completed_date ELSE NOW()END, opportunity.date_identified)",
"orderBy": "DATEDIFF(CASE WHEN opportunity.status = 'closed won' THEN opportunity.completed_date ELSE NOW() END, opportunity.date_identified ) {direction}",
or for closed won/lost or multiple
"select": "DATEDIFF(CASE WHEN opportunity.status IN ('Completed', 'Hold') THEN opportunity.completed_date ELSE NOW()END, opportunity.date_identified)",
"orderBy": "DATEDIFF(CASE WHEN opportunity.status IN ('Completed', 'Hold') THEN opportunity.completed_date ELSE NOW() END, opportunity.date_identified ) {direction}",
Comment