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

    application solution

    Popular Salesforce Blogs

    Salesforce Einstein Analytics - a brief overview and comparison with SAP Analytics Tools and Microsoft Power BI

    Blog in Salesforce Einstein

    What is Einstein Analytics and how it will support for your business to reach to the next level? Normally the people who are controlling the…

    App Cloud, Business Success, Customer Satisfaction, Customer Service, Einstein
    Prasad Dec 3, 2018
    8,940  Views
    Visualforce in Salesforce

    Learn All About Visualforce in Salesforce

    Blog in Visualforce

    What is Visualforce?  Visualforce is a framework that developers can use to create sophisticated custom user interfaces that can be hosted natively on the Lightning…

    Controllers, Custom Controller, Custom User Interface, Dashboard Components, Database Operations
    Nikhil Kumar Oct 28, 2022
    2,428  Views

    A Nonprofit's Success with Salesforce

    Blog in Salesforce Implementation

    Case Study: Nonprofit Organization Leverages Salesforce for Growth Organization: The Community Foundation   Challenge: The Community Foundation struggled to manage donor relationships, track donations effectively, and…

    Data-Driven Decision-Making, Nonprofit Cloud Solutions, Nonprofit Collaboration Tools, Nonprofit CRM Best Practices, Nonprofit CRM Customization
    Cloudy Sep 11, 2024
    481  Views

    Popular Salesforce Videos

    Stephen Merity - Really Quick Questions with a Salesforce Researcher

    Stephen Merity - Really Quick Questions with a Salesforce Researcher

    Video in Salesforce Stories

    Stephen Merity is a senior research scientist working on deep learning in San Francisco with Salesforce Research via the MetaMind acquisition. He's been lucky enough…

    Artificial Intelligence, Machine Learning, Learn Salesforce, Best Salesforce Tutorials, AI In Salesforce
    Pooja May 1, 2018
    2,733  Views
    Developer Life in India | An Interview with Salesforce Chef

    Developer Life in India | An Interview with Salesforce Chef

    Video in Salesforce Stories

    Timecode: 00:00 Introduction 01:10 Who is Amit Singh? 01:56 Amit has interesting projects 03:58 Amit does technical content, but he is still popular. How? 05:45…

    Salesforce Developer, Salesforce Admins, Salesforce Video, Salesforce Chef, Salesforce Learning
    Jogender Jan 6, 2021
    1,841  Views
    Unfolding Code Builder | Salesforce Development Tutorial

    Unfolding Code Builder | Salesforce Development Tutorial

    Video in Salesforce Training, Salesforce Development

    Working with Salesforce Development has been a challenge especially when we are working with Lightning Web Component. As we have to install the VS code…

    Salesforce Training, Salesforce Tutorial, Salesforce Development, Salesforce Developer, salesforce
    SFDC Sep 5, 2022
    1,736  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

    © 2025 - 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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.