Apps Developer Blog

Information for Google Apps Developers

Approval Workflow using Apps Script

April 17, 2012
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Apps Script , Guest Post

7 comments :

Pakorn Ngammanussiri said...

Great example on apply Google Apps platform to suit customer needs.

I'm interested in learning this.

Especially, where can I start on the part that create an email which supervisor can response within the email.

April 18, 2012 at 4:50 AM
Alberto Bartoli said...

Great example.

I am missing a point: could you please give me a hint about how you can accept/decline directly in Gmail ? (step 3).

I don't grasp the structure of the script code that constructs the form and sends it via Gmail.

Thanks a lot.

April 18, 2012 at 5:01 AM
Eric Gonzalez said...

Really hoping to meet other Google Apps customers at Google IO that can share examples of how they have used App Script to automate internal processes.

April 18, 2012 at 6:01 AM
Steve Webster said...

Before sending the email, build the HTML body like this:

var body =
...
'<.form action="' + PublishedURL + '" method="post">' +
'<.input type="hidden" name="row" value="' + row +'" /> ' +
'<.input type="radio" name="decision" value="Approve" checked="checked" /> Approved
' +
'<.input type="radio" name="decision" value="Decline" /> Declined

' +
'Declined Reason or Comment: ' +
'<.input type="text" size="75" name="reason" width="200px" value="(enter comment/decline reason)" />

' +
'<.input type="submit" value="Submit" />' +
'<./form>' +
...
MailApp.sendEmail(supervisor, "Ethics Disclosure Approval Needed" , "", {htmlBody: body});

Note: periods were inserted in HTML tags so Blogger would accept it. Ignore them.

Questions like these are best answered on the Google Apps Script Forum:
https://groups.google.com/a/googleproductforums.com/forum/#!categories/apps-script

Contact Dito for development services here: www.ditoweb.com

April 18, 2012 at 7:37 AM
Alberto Bartoli said...

Steve, thanks a LOT.

April 18, 2012 at 7:51 AM
Harry said...

This is very basic workflow using script. We have developed google docs based workflow app. see demo video: http://www.youtube.com/watch?v=w2ouZ7OUZ8k contact us www.netkiller.com if you are interested or to see live demo.

April 18, 2012 at 3:18 PM
jack hussey said...

The architecture of mobile GIS is very similar to that of Internet-based GIS, using a client-server architecture.Client-server applications usually implement what is referred as a Three Tiered Architecture.
iphone app development

May 15, 2012 at 4:36 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Administrative APIs 26
  • Admin SDK 4
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google+ 3
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • googlenew 1
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms