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

    application solution

    Popular Salesforce Blogs

    Twilio Integration

    Twilio Integration with Salesforce - 2 Important Techniques

    Blog in Others

    Twilio is a cloud communications platform as a PAAS  that allows developers to programmatically create / receive / receive / receive / receive / receive…

    Cloud Communication, Custom Class, Customer Relationships, Developer Console, Developers
    Mansi Tyagi Jul 28, 2022
    3,053  Views
    Salesforce Data Exporting

    Salesforce Data Exporting Options

    Blog in Data, Salesforce

    Data Loader Export CSV files manually or should configure the tool to automatically run at scheduled times to send out CSV to a destination location…

    Create Export Files, CSV, CSV Files, Custom Script, Custom Scripting
    Sharath Chandra Feb 8, 2022
    5,329  Views

    What is Salesforce financial services cloud?

    Blog in Salesforce integration

    This blog post takes into account the in and outs of Salesforce financial services cloud. The blog paves the way for you to understand everything…

    Finance Service Cloud, Financial Management Cloud, Salesforce Financial Services Cloud, Salesforce Integration, Salesforce Shield
    William Jun 12, 2019
    5,979  Views

    Popular Salesforce Videos

    Run Report With Filters from UiPath Studio | Salesforce

    Run Report With Filters from UiPath Studio | Salesforce

    Video in Salesforce Integration, Salesforce Training

    New features on Salesforce Activities Extention Package from UiPath MarketPlace: https://connect.uipath.com/marketplace/components/salesforce-activities-extention-package (0:40) Use complex object in the Query and Timeout part of the Setting to…

    Salesforce Training, salesforce, Salesforce Video, big data, Salesforce Learning
    Cristian Dec 10, 2020
    2,235  Views
    Introduction to Salesforce Function | Evergreen

    Introduction to Salesforce Function | Evergreen

    Video in Others, Salesforce Stories

    Introduction to Salesforce Function and Evergreen. Deliver event-driven, connected experience fast. Evergreen: Serverless Functions Check out this video to learn everything you need to know…

    Salesforce Training, Salesforce Certification, Salesforce Video, Salesforce Learning, JavaScript Developer
    Prafull Jul 21, 2020
    2,333  Views
    Salesforce Platform Quick Tip: How to Optimize UI for Mobile Users

    Salesforce Platform Quick Tip: How to Optimize UI for Mobile Users

    Video in Salesforce Stories, Mobile

    How do you design Salesforce for use on either a desktop monitor or a phone? What looks great on a big monitor looks crowded on…

    Salesforce Training, Salesforce Lightning, salesforce, salesforce platform, UI
    Abhishek Oct 7, 2021
    1,497  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®.

    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.