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, 10 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

    Best Practices in Salesforce to Write Test Classes for 100% Code Coverage

    Blog in Others

    Introduction Test classes in Salesforce is an Apex Class that is used to test logics written in classes. We write Salesforce Test Classes for: Apex…

    Apex Triggers, Batch Apex Class, Salesforce Apex Class, Salesforce Test Classes, Salesforce Visualforce
    Manish Feb 21, 2020
    11,101  Views

    Salesforce Summer ’18 Release - Key Points

    Blog in Salesforce Releases

    Three times per year, Salesforce release a new version of their products, full of new and exciting features. The first and second weekend of June…

    Salesforce Consultant, Salesforce Consulting, Salesforce Development, Salesforce Partner, salesforce summer release
    KeyNode Jun 18, 2018
    5,006  Views

    Drive Omnichannel Customer Experiences with Salesforce Interaction Studio

    Blog in Salesforce Products

    Discover how leading brands leverage the power of Marketing Cloud Interaction Studio to drive real-time customer experiences — fostering valuable brand engagement at the right…

    Chrome Extensions, Customer Experience, Salesforce, Salesforce Campaigns, Salesforce Cloud Platform
    LevelShift (formerly DemandBlue) Feb 21, 2019
    5,545  Views

    Popular Salesforce Videos

    What Is Salesforce Data Cloud & How It Works ?

    What Is Salesforce Data Cloud & How It Works ?

    Video in Others

    As a business, it’s hard to get all the data in a single place and make informed business decisions. And this is where Salesforce Data…

    salesforce, Salesforce Video, Data Management, Data Cloud, Customer Insights
    Cyntexa Jul 2, 2024
    895  Views
    Salesforce Winter '22 Product Release Highlights!

    Salesforce Winter '22 Product Release Highlights!

    Video in Salesforce Products

    Watch this video to learn about the Salesforce Winter '22 Product Release Highlights. 0:00 - Winter Release Preview 0:10 - Pipeline Inspection Enhancements 0:23 -…

    Salesforce Training, Salesforce Tutorial, Salesforce Video, Salesforce Functions, customer service
    Jogender Sep 21, 2021
    1,974  Views
    Get a Complete View of Salesforce Data with MongoDB

    Get a Complete View of Salesforce Data with MongoDB

    Video in Data, Salesforce Training

    Teri will show you how you can incorporate Salesforce (relational data) into a MongoDB collection (non-relational data) to give your customers a unified customer experience.…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Data, Salesforce Video
    Rupal Kakkar Jul 2, 2021
    1,577  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.