Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
or use

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here
Continue with Facebook
Continue with Google
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Continue with Facebook
Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this answer should be reported.

Sign InSign Up

Developer Bridge

Developer Bridge Logo Developer Bridge Logo

Developer Bridge Navigation

  • Home
  • About Us
  • Blog
  • Category
    • Collaboration
      • Yammer
      • Teams
      • Stream
    • SharePoint
      • SharePoint
    • Office
      • Word
      • PowerPoint
      • Excel
    • Email
      • Outlook
    • Task Planning
      • To Do
      • Task
      • Planner
      • OneNote
    • PowerPlatform
      • PowerApps
      • Power BI
      • Flow
    • OneDrive For Business
      • OneDrive
      • People
      • Forms
      • Dynamics
      • Delve
      • Calendar
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
Home/ Questions/Q 1450
Next
In Process
Viqar
Viqar

Viqar

  • Manassas, United States (US)
  • 2 Questions
  • 0 Answers
  • 0 Best Answers
  • 25 Points
View Profile
  • 2
ViqarBeginner
Asked: July 13, 20212021-07-13T10:29:21-04:00 2021-07-13T10:29:21-04:00In: Sharepoint

Can we create workflow for sending emails through HTML / JavaScript or it can only be through SharePoint Designer.

  • 2

Can we create workflows through HTML / JavaScript or it can only be done through SharePoint Designer.

  • 3 3 Answers
  • 28 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

Related Questions

  • Transfer files from FTP/SFTP server to SharePoint online or Teams
  • What is a site collection and how to create a site collection in SharePoint?
  • How to migrate SharePoint farm solutions to SharePoint Online?
  • What are the various migration tools that you can use in SharePoint Online?
  • What is Microsoft teams? And how Teams is different from SharePoint Online?

3 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. adeelaslam

    adeelaslam

    • 2 Questions
    • 16 Answers
    • 0 Best Answers
    • 62 Points
    View Profile
    adeelaslam Teacher
    2021-07-14T04:51:15-04:00Added an answer on July 14, 2021 at 4:51 am

    Web Script Editor adds HTML and JavaScript capabilities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. SPBuddy

    SPBuddy

    • 3 Questions
    • 33 Answers
    • 1 Best Answer
    • 99 Points
    View Profile
    SPBuddy Teacher
    2021-09-04T14:21:50-04:00Added an answer on September 4, 2021 at 2:21 pm

    I will not say we cannot achieve workflow actions kind of behavior using JavaScript/HTML but there will be alot of limitations when we say a workflow actions. Because both HTML and JavaScript are running on client side. 

    If you are asking just about email functionality yes that can be done using JavaScript APIs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  3. Abdullah Khan

    Abdullah Khan

    • 0 Questions
    • 2 Answers
    • 0 Best Answers
    • 54 Points
    View Profile
    Abdullah Khan Teacher
    2021-09-07T09:29:17-04:00Added an answer on September 7, 2021 at 9:29 am

    Yes, We can send email through HTML/JavaScript using SPUtility Send Email.
    Pease find below sample code.
    function processSendEmails() {

    var from = ‘asad@Example.com’,
    to = ‘someone@Example.com’,
    body = ‘Hello World Body’,
    subject = ‘Hello World Subject’;

    // Call sendEmail function
    //
    sendEmail(from, to, body, subject);
    }

    function sendEmail(from, to, body, subject) {
    //Get the relative url of the site
    var siteurl = _spPageContextInfo.webServerRelativeUrl;
    var urlTemplate = siteurl + “/_api/SP.Utilities.Utility.SendEmail”;
    $.ajax({
    contentType: ‘application/json’,
    url: urlTemplate,
    type: “POST”,
    data: JSON.stringify({
    ‘properties’: {
    ‘__metadata’: {
    ‘type’: ‘SP.Utilities.EmailProperties’
    },
    ‘From’: from,
    ‘To’: {
    ‘results’: [to]
    },
    ‘Body’: body,
    ‘Subject’: subject
    }
    }),
    headers: {
    “Accept”: “application/json;odata=verbose”,
    “content-type”: “application/json;odata=verbose”,
    “X-RequestDigest”: jQuery(“#__REQUESTDIGEST”).val()
    },
    success: function(data) {
    alert(‘Email Sent Successfully’);
    },
    error: function(err) {
    alert(‘Error in sending Email: ‘ + JSON.stringify(err));
    }
    });
    }

    $(document).ready(function () {

    SP.SOD.executeFunc(‘sp.js’, ‘SP.ClientContext’, processSendEmails);

    });

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Trending Tags

access active directory alternate to infopath amazon azure business analytics business intelligence calendar cewp contacts content editor data science data visualisation data visualization delve digital marketing excel files transfer forgot outlook password forms ftp how can we use mathematical symbols in a sharepoint page. how to recover outlook password how to reset outlook password infopath infopath forms infopath sharepoint jquery list list views list width m365 measure microsft microsift 365 microsoft microsoft 365 microsoft delve microsoft office 365 online microsoft word modern sharepoint msoffice ms word need help o365 office 365 onedrive onenote opinion organizational chart outlook outlook account recovery outlook password recovery poll power apps power automate powerbi power bi powerpoint ppt question reports sharepoint sharepoint designer reminders sharepoint online spfx sql stratusforms stream suggestion support tableau team teams urgent web part word xyz yammer

Explore

  • Home
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Chat Bridge
  • Trainer Chat Bridge
  • Apps Bridge
  • Jobs Bridge
  • Communities
  • Groups page
  • Add Group
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Login

Footer

About Developer Bridge

Developer Bridge is a social questions & Answers Engine which will help you establish your community and connect with other people.

About Us

  • Meet The Team
  • About Us
  • Blog
  • Contact Us

Help

  • Knowledge Base
  • Support

Contact Details

1775 Tysons Blvd Suite # 500 McLean VA 22102 1(877)-958-9299 info@developerbridge.com

Follow

© 2022 Developer Bridge. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.