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

    Custom Range of Years for Standard Date Field in Salesforce

    Custom "Range of Years" for "Standard Date Field" in Salesforce

    Blog in Coding and Scripting, Salesforce customization

    Have you ever noticed that the standard date field shows year Range to only up to 7 years? What if we want that Range to…

    Date Field, Range of Years, Salesforce Code, Salesforce Customization, Salesforce Standard Fields
    Manpreet Apr 26, 2018
    5,891  Views

    Guided Field Service and Warehouse Inventory Management | Salesforce

    Blog in Lightning, Salesforce

    Salesforce Field Service Lightning is the Salesforce product that works best for any business that involves people working in the field for repairs, maintenance, deliveries,…

    Business, Company Warehouse, Customer Sites, Distribution Centres, Field Service
    360 Degree Dec 21, 2021
    2,141  Views

    5 Features That Salesforce Professionals Want You to Know About

    Blog in Salesforce Admin

    Salesforce has been instrumental in maintaining superior customer relationships for businesses. As Salesforce keeps adding new tools to its ecosystem, customer management has become easier…

    App Integrations, AppExchange, AppExchange Marketplace, Businesses, Coding Scripts
    Carol Jul 29, 2020
    3,890  Views

    Popular Salesforce Videos

    How To Assign Leads in Salesforce | Overview of 3 Main Lead Routing Solutions

    How To Assign Leads in Salesforce | Overview of 3 Main Lead Routing Solutions

    Video in Salesforce Development

    Salesforce offers several options on how to automatically assign incoming leads to a suitable sales manager. But what to choose: out-of-the-box features, external AppExchange app,…

    Lead Assignment rule in Salesforce, Salesforce Lead Assignment Rule, Salesforce Custom Development, Lead Assignment Rule, Lead Routing
    ENWAY Jul 3, 2024
    891  Views
    How To Build Better Communities with Salesforce Lightning?

    How To Build Better Communities with Salesforce Lightning?

    Video in Lightning

    Learn how you can customize Salesforce Community Cloud to fit your needs with the Lightning Bolt framework, Lightning Components and Community Builder.

    Salesforce Online Training, Salesforce Developer, Salesforce Lightning Components, Salesforce Community, Salesforce Community Cloud
    Portia Feb 6, 2018
    1,708  Views
    How to Configure and Customize Salesforce Lightning

    How to Configure and Customize Salesforce Lightning

    Video in Lightning, Salesforce Training

    A Salesforce expert will guide you through all of the configuration, customization, and personalization options available so you can get the most out of Lightning…

    Salesforce Training, Salesforce Lightning, salesforce, Sales Productivity, Salesforce Lightning App
    Prafull Jul 20, 2021
    2,215  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.