{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Developer Portal (Drupal-based) /
avatar image
3
Question by Toshihiro Shibamoto · Jun 30, 2015 at 12:31 PM · 239 Views appmail

Question about generating an email on DevPortal when an event occurs

Could someone answer to the following question from our customer?

According to the Apigee docs:

http://apigee.com/docs/developer-services/content/configuring-email

- Generating an email when an event occurs

the customer reported that the sample rule with the event 'Upon creation of a developer app just works fine and DevPortal sends email right after a developer app is created.

But in the case of 'app_status' with configured as;

"ON" : { 
"devconnect_developer_app_status_pending_approved" : [], 
"devconnect_developer_app_status_approved_revoked" : [], 
"devconnect_developer_app_status_pending_revoked" : [], 
"devconnect_developer_app_status_revoked_approved" : [] 
},

The email is sent out at the timing of cron job runs schedule by;

cron : Coniguration > System > Cron > 'Run cron every'

Can we configure this also as to receive the email right after the app_status is updated like 'creation of a developer app'?

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
1
Best Answer

Answer by Anil Sagar @ Google   · Jun 30, 2015 at 12:41 PM

Dear @Toshihiro Shibamoto ,

There is a reason behind this. Developer portal doesn't give any option to approve / revoke apps by default. Administrator has to use Management UI to approve / revoke apps.

Changes will be reflected in developer portal only after cron run. That's the reason email is sent out at the timing of cron jobs.

As of now, If you need immediate email then it has to be implemented as a custom feature in Developer Portal.

Cheers,

Anil Sagar

Comment
Add comment Show 6 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Toshihiro Shibamoto ♦♦ · Jun 30, 2015 at 01:01 PM 0
Link

Thank you so much @Anil Sagar for the reply.

I understood your points and then could you give some more hints on how to implement it as custom feature - is it by Drupal add-on module? And is it the only way to call Management API from DevPortal to get the status like cron job or is there any way to get events from Management Server side for immediate email on the status change?

avatar image Anil Sagar @ Google ♦♦ Toshihiro Shibamoto ♦♦   · Jun 30, 2015 at 01:12 PM 0
Link

Hi @Toshihiro Shibamoto ,

Yes, It should be a custom module. Using custom module we will implement admin screens where admin can approve/revoke apps. On action (approve/revoke) we will call management api and also send an immediate email.

Cheers,

Anil Sagar

avatar image Toshihiro Shibamoto ♦♦ Anil Sagar @ Google ♦♦ · Jun 30, 2015 at 01:28 PM 0
Link

Thank you @Anil Sagar for the reply. The customer wants to send email immediately without waiting for cron job to run next cycle. So there is no such mechanism like event triggered by management server to DevPortal? Is it correct?

avatar image Anil Sagar @ Google ♦♦   · Jun 30, 2015 at 01:32 PM 0
Link

Yes, Out of the box it's not available. Yes, there is no such mechanism like event triggered by management server to Dev Portal. Can be implemented as a custom solution where admin has to manage apps in dev portal itself. Again, No such mechanism like event triggered by management server to Dev Portal if app is approved / revoked in management server.

avatar image Toshihiro Shibamoto ♦♦ Anil Sagar @ Google ♦♦ · Jun 30, 2015 at 01:35 PM 1
Link

Thank you very much @Anil Sagar for the clarification on the current design and option for the customization as needed. Will share this info with the customer. I really appreciate your help.

avatar image Anil Sagar @ Google ♦♦   · Jun 30, 2015 at 01:38 PM 0
Link

You are welcome @Toshihiro Shibamoto. You can click on accept link below the answer if you feel your question has been answered to mark it best answer. It will help others looking for same. Thank you.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Rules -> Send mail under Actions is not working. 0 Answers

Customize buttons on Edit / Delete App modals 2 Answers

how to send html email programmatically using rules modules.? 1 Answer

Associating multiple users to a single app 1 Answer

Unable to send e-mail. 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges