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, 8 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 Net Zero Cloud

    What is Salesforce Net Zero Cloud?

    Blog in Salesforce, Salesforce Cloud Platform

    Barely a day goes by without there being something in the news about climate change, sustainability or carbon footprints. It is a major focus for…

    Carbon Footprints, Climate Change, Corporate Reputation, CRM Analytics, Customers
    Stimulus Consulting Dec 1, 2022
    2,556  Views
    7 Signs Your Company Needs a Salesforce Consulting Partner

    7 Signs Your Company Needs a Salesforce Consulting Partner

    Blog in Salesforce Consultant

    1. Struggling with Salesforce Adoption One of the most common challenges businesses face is low adoption rates of Salesforce among their teams. Despite its powerful…

    api-integration, Business Objectives, Change Management, Customer Engagement, Customer Satisfaction
    Infodriven Jun 4, 2024
    668  Views

    Top 5 Benefits of Salesforce Commerce Cloud

    Blog in Salesforce Consultant

    As the number of online shoppers continues to increase rapidly, businesses must adapt to this growing market. To attract customers and expand their online presence,…

    Brand Marketers, Businesses, Commerce Cloud, Consulting Partner, Content Creators
    Innovadel Jun 1, 2023
    1,371  Views

    Popular Salesforce Videos

    Dreamforce 2021 FAQs

    Dreamforce 2021 FAQs

    Video in Salesforce Stories

    As the fall continues to approach, questions around Dreamforce 2021 continue to increase and that's why we've gone ahead and answered all the FAQs around…

    dreamforce, Salesforce Video, Salesforce Learning, Pandemic, Dreamforce 2021
    Algoworks Sep 22, 2021
    1,443  Views
    What is Record Types in Salesforce?

    What is Record Types in Salesforce?

    Video in Salesforce Admin

    Record Types is where you have multiple page layouts to a specific profile. Watch this video to learn all about it.

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce CRM, Salesforce Video
    CRS Feb 22, 2022
    2,068  Views
    Guided Selling with Salesforce CPQ

    Guided Selling with Salesforce CPQ

    Video in Salesforce Stories, Sales

    Do you know how to set up guided selling in Salesforce CPQ? In this demo video, we'll show you three easy steps to set up…

    salesforce, Salesforce CPQ, Salesforce Admins, CPQ, Salesforce Video
    Rupal Kakkar May 29, 2020
    3,004  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.