Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How can we create workflow through apex in Salesforce?

    Tagged: Apex System Class, Approval Process, Business Logic, Metadata API, Salesforce Apex, Workflow Rules

    • Salesforce® Discussions

      How can we create workflow through apex in Salesforce?

      Posted by Nikita on December 6, 2019 at 8:37 AM

      How can we create workflow through Apex in Salesforce?

      Deepak replied 6 years, 9 months ago 2 Members · 1 Reply
      • Apex System Class
      • Approval Process
      • Business Logic
      • Metadata API
      • Salesforce Apex
      • Workflow Rules
    • 1 Reply
    • Deepak

      Member
      December 6, 2019 at 12:32 PM

      You can not create approval process or workflow with Apex system classes.

      These are configurable business logics which can not be created generally in Apex.

      But there is one way of creating these components is Metadata API. In metadata API you can create Approval process, workflows, workflow rules, Assignment rules and other admin and development logics.

      In apex, a record can be submit for approval, a record can be rejected and approved. You can only access already created Approval process on object and perform submit, approve and reject operations on record. Workflow rules can not be accessed in this way.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Salesforce CRM Analytics

    Business Days in Salesforce CRM Analytics (Tableau CRM)

    Blog in Salesforce Products

    It's common for businesses to want to take business days into account when showing data on a dashboard in CRM Analytics (formerly Tableau CRM) to…

    Business Day Object, Business Day Records, Business Days, Business Hours, Business Hours and Holidays
    DB Jun 1, 2022
    2,942  Views
    Event Monitoring in Salesforce

    Real-Time Event Monitoring in Salesforce

    Blog in Salesforce, Salesforce Admin

    Introduction Event monitoring provides you with the power to visualize however users are interacting with Salesforce in a very whole new way. In today’s world,…

    API calls, API Transactions, Async SOQL, Auditing, Auditing App
    Arun Sep 27, 2021
    10,234  Views

    Why Should you Hire a Salesforce Pardot Consultant: Key Reasons to Know

    Blog in Salesforce

    Are you finding Salesforce Pardot Implementation a daunting task? Don’t worry. We are here with our complete guide on Salesforce Pardot Consultants and why should you hire them.    What…

    Marketing Automation, Marketing Campaigns, Marketing Cloud, Marketing Cloud Functionality, Marketing Qualified Leads
    connect@codinix.com Mar 26, 2023
    2,135  Views

    Popular Salesforce Videos

    WWE Connector for Salesforce

    Video in Salesforce Integration

    In this quick video we will show the Workspace Web Edition Connector for Salesforce. The WWE Connector leverage a powerful browser extension to guarantee a…

    Salesforce Reports, Salesforce Integration, Salesforce Data, Salesforce Integration Consultant, Salesforce Controller Extension
    Ashley Mar 27, 2018
    2,323  Views
    What is Salesforce? Why Salesforce? Salary Expectation | Certification Required

    What is Salesforce? Why Salesforce? Salary Expectation | Certification Required

    Video in Salesforce Certifications

    Watch this video and learn all about Salesforce and how to make a career in Salesforce. What is Salesforce? Why Salesforce? Salary Expectation | Certification…

    Salesforce Training, Salesforce Tutorial, Salesforce Certification, salesforce, Salesforce Video
    Rupal Kakkar Nov 30, 2021
    2,059  Views
    Introduction to Salesforce CTA Exam

    Introduction to Salesforce CTA Exam

    Video in Salesforce Certifications

    The average salary for a Technical Architect is $118,324 per year in the United States. Do you also want to become Technical Exam by cracking…

    Salesforce Training, Salesforce Tutorial, Salesforce Certification, salesforce, Salesforce Video
    S2 Jan 25, 2022
    2,103  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.