Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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, 5 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

    [adinserter block="12"]

    Popular Salesforce Blogs

    Salesforce Forms Integration

    Salesforce Forms Integration Without Code

    Blog in Salesforce integration

    Salesforce Forms - Drag and Drop - Dynamic - NO CODE If you’ve been looking for a way to build dynamic Salesforce forms with no…

    Application Forms, Application Process, Applications, Automated Client Onboarding, Automation Salesforce Tools
    Ben Miller Mar 8, 2022
    2,909  Views

    Importance of performance in Salesforce development

    Blog in Coding and Scripting, Salesforce Implementation

    While you can develop and publish your .NET applications using the Microsoft Azure cloud platform - the thing is, these applications would still be being…

    dotNET, Microsoft Azure Cloud, Salesforce Development
    The Welkin Suite Jul 31, 2017
    6,132  Views
    Queues in Salesforce

    All You Need to Know About Queues in Salesforce

    Blog in Others, Salesforce

    Case queues in Salesforce give your bolster organization a simple, adaptable arrangement to support and disseminate the cases over different levels of the organization. You'll…

    API Name, Article Versions, Assignment Rule, Associations, Benefit Contracts
    Ayush Jan 28, 2021
    7,789  Views

    Popular Salesforce Videos

    Foo Fighters Ignite Dreamforce Crowd on Day 1 | Salesforce

    Foo Fighters Ignite Dreamforce Crowd on Day 1 | Salesforce

    Video in Salesforce Stories

    Salesforce's Dreamforce typically transforms San Francisco's South of Market area for its annual convention. This year is no exception, but due to COVID, it's a…

    Salesforce Training, dreamforce, salesforce, Salesforce Event, Salesforce Video
    Nauman Sep 23, 2021
    1,929  Views
    Welcome to the New World of Data Collection | Salesforce

    Welcome to the New World of Data Collection | Salesforce

    Video in Others

    Secure data collection built for your needs. With FormAssembly, your organization can streamline outdated processes and power important business initiatives. Click the link below to…

    Salesforce Training, Salesforce Tutorial, Salesforce Administration, Salesforce Developer, Salesforce Integration
    S2 Apr 1, 2022
    2,131  Views
    Create Targeted Campaigns w/ Marketing Cloud Advertising | Salesforce Demo

    Create Targeted Campaigns w/ Marketing Cloud Advertising | Salesforce Demo

    Video in Marketing, Salesforce Cloud Platform

    Explore the power of using 1st party data to power ad audiences across the most popular ad channels today, including Google (Search, Shopping, YouTube, Gmail),…

    Salesforce Training, Salesforce Tutorial, Salesforce Demo, salesforce, Customers
    Rupal Kakkar Mar 4, 2022
    2,616  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.