Auto update opportunity stage using escalations rules

By | October 31, 2019

Opportunities are a very important aspect of sales revenues in any business as they help us to track orders, sales forecast and quotations against every sale. As we know opportunity goes through various stages in Sage CRM.

In this blog, we will discuss how to auto update opportunity stage from Proposal Submitted to Proposal Approved when associated Quote status is Approved.

New Stuff: Basic modifications to Sage CRM Layouts

For this we can create an escalation rule by following the below mentioned steps:

  1. Create an new escalation from below Sage CRM path
    Administration | Advanced Customisation | Escalations | new
  2. Select View radio button from Table or view section and enter the below values
    • View= vquotes
    • Table = Quotes
  3. Next, add the below Trigger SQL Clause:
    Quote_stage=’Approved’ and oppo_stage!= ‘ProposalApproved’ and quote_deleted is null and oppo_deleted is null Escalation
    Escalation
  4. Click on Save. Now add actions to the escalation rule as follows:
    • Click on New button.
    • Select action as “Execute SQL StatementEscalation Actions
      Escalation Actions
  5. Enter the SQL query on below Rule Action screen and click on save.
    BEGIN TRANSACTION
    update WorkflowInstance
    set WkIn_CurrentStateId = (i.e stateid of ProposalApproved state)
    where WkIn_WorkflowId =(i.e oppo_workflowid=2)
    and WkIn_CurrentStateId = (i.e stateid=ProposalSubmitted)
    and WkIn_CurrentEntityId = (i.e Enitity id of Opportunity)
    and WkIn_CurrentRecordId = #oppo_opportunityid#
    and WkIn_Deleted is null
    update opportunity
    set Oppo_Stage = ‘ProposalApproved’
    where Oppo_OpportunityId = #Oppo_opportunityid#
    commit
    Rule Actions
    Rule Actions

On enabling this escalation rule opportunity should be updated to Proposal Approved stage when the linked Quote stage is Approved.

About us:

Greytrix a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix has some unique integration solutions for Sage CRM with Sage ERPs (Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100Sage 500 and Sage 300).We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users and Sage PSG worldwide. Greytrix helps in migrating of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature and Sage CRM CTI Framework.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.