Results 1 to 8 of 8

Thread: Workflows are not working, what to do?

  1. #1
    andreasbalzer2 is offline Senior Member
    Join Date
    Aug 2008
    Posts
    56

    Default Workflows are not working, what to do?

    Hi,
    I created a workflow to send an email with a template and create two tasks as soon as a new opportunity has been created. Unluckily it doesn't work. No email is sent, no taks are created. What could cause such an error?
    Execution Occurs: When record saved Status: Active
    Target Module: Opportunities Applies to: New Records Only
    Processing Order: Alerts then Actions

  2. #2
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Workflows are not working, what to do?

    Hi andreas,

    can you please provide more information? what are the exact conditions you set for this workflow? Then, what are the exact steps you used to create the opportunity?

    For the email, the system outbound email settings must be populated, as well as the email address of the person who is supposed to receive the email.
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  3. #3
    andreasbalzer2 is offline Senior Member
    Join Date
    Aug 2008
    Posts
    56

    Default Re: Workflows are not working, what to do?

    Sorry that it took me so long to respond. Here's my configuration of the opportunity workflow. It should send an email and create two tasks as soon as an opportunity is created. However: nothing is done by sugar :-/ E-Mail settings are set up and work. (E-Mail module works)

    Workflow A:
    Execution Occurs: When record saved
    Target Module: Opportunities
    Processing Order: Alert then Actions
    Status: Active
    Applies to: New records only

    Conditions:
    none

    Alerts:
    B
    Alert Type: Email
    Source Type: Custom Template
    Custom Template: C

    Actions:
    D:
    Modify the field: Subject -> Blabla
    Modify the field: Description -> Blabla
    Modify the field: Assigned User ID -> assigned_user_id
    Modify the field: Status -> Not Started
    Modify the field: Due Date -> 4 hours from Triggered Date
    Modify the field: Start Date -> 0 hours from Triggered Date
    Modify the field: Priority -> High

    E:
    Modify the field: Subject -> BlaBla
    Modify the field: Description -> BlaBla
    Modify the field: Assigned User Id -> assigned_user_id
    Modify the field: Status -> Not Started
    Modify the field: Priority -> High


    Templates:
    C:
    Name: BlaBla
    Description: BlaBla
    From Name:BlaBla
    Target Module: Opportunities
    Subject: A new opportunity has been created ({::future::Opportunities::account_name::})
    Body: Hi,

    this is an automated message. Please don't respond.

    A new opportunity has been created by {::future::Opportunities::assigned_user_name::} called {::future::Opportunities::name::} with the customer {::future::Opportunities::account_name::}.


    From Address: BlaBla



    Workflow Sequence: Opportunities: A

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Workflows are not working, what to do?

    Check your Admin->Email Settings page and make sure your server settings are right. Also make sure "Notifications on?" is checked.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    andreasbalzer2 is offline Senior Member
    Join Date
    Aug 2008
    Posts
    56

    Default Re: Workflows are not working, what to do?

    Hi,
    notifications was already enabled and the email settings are all fine (as the Email module works nicely). However the workflows still don't work.

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Workflows are not working, what to do?

    Edit your php.ini file and make it so that it logs all errors to a log file. Instructions on how to do this should be in the file, if not then they are all over the internet.

    Then restart your server and delete the sugarcrm.log file.

    then do something that should send out an email

    then zip up the sugarcrm.log file and the php error log file and send them to me.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    wynn is offline Sugar Team Member
    Join Date
    Aug 2008
    Posts
    372

    Default Re: Workflows are not working, what to do?

    I think you should set a condition first.
    Such as "When target module changes"
    The workflow will write to custom folders, only after you set a condition/trigger.

    you can try if it is OK now.

    Quote Originally Posted by andreasbalzer2
    Sorry that it took me so long to respond. Here's my configuration of the opportunity workflow. It should send an email and create two tasks as soon as an opportunity is created. However: nothing is done by sugar :-/ E-Mail settings are set up and work. (E-Mail module works)

    Workflow A:
    Execution Occurs: When record saved
    Target Module: Opportunities
    Processing Order: Alert then Actions
    Status: Active
    Applies to: New records only

    Conditions:
    none

    Alerts:
    B
    Alert Type: Email
    Source Type: Custom Template
    Custom Template: C

    Actions:
    D:
    Modify the field: Subject -> Blabla
    Modify the field: Description -> Blabla
    Modify the field: Assigned User ID -> assigned_user_id
    Modify the field: Status -> Not Started
    Modify the field: Due Date -> 4 hours from Triggered Date
    Modify the field: Start Date -> 0 hours from Triggered Date
    Modify the field: Priority -> High

    E:
    Modify the field: Subject -> BlaBla
    Modify the field: Description -> BlaBla
    Modify the field: Assigned User Id -> assigned_user_id
    Modify the field: Status -> Not Started
    Modify the field: Priority -> High


    Templates:
    C:
    Name: BlaBla
    Description: BlaBla
    From Name:BlaBla
    Target Module: Opportunities
    Subject: A new opportunity has been created ({::future::Opportunities::account_name::})
    Body: Hi,

    this is an automated message. Please don't respond.

    A new opportunity has been created by {::future::Opportunities::assigned_user_name::} called {::future::Opportunities::name::} with the customer {::future::Opportunities::account_name::}.


    From Address: BlaBla



    Workflow Sequence: Opportunities: A

  8. #8
    andreasbalzer2 is offline Senior Member
    Join Date
    Aug 2008
    Posts
    56

    Default Re: Workflows are not working, what to do?

    Hi,
    thank you so much! It works after I set up the condition you described
    Quote Originally Posted by wynn
    I think you should set a condition first.
    Such as "When target module changes"
    The workflow will write to custom folders, only after you set a condition/trigger.

    you can try if it is OK now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. working with the description field in sugar
    By vinnie in forum General Discussion
    Replies: 1
    Last Post: 2008-05-29, 04:45 PM
  2. Change working directory
    By austints in forum Help
    Replies: 2
    Last Post: 2007-12-20, 04:24 AM
  3. Replies: 1
    Last Post: 2006-11-10, 03:46 PM
  4. Change working directory
    By austints in forum Developer Help
    Replies: 7
    Last Post: 2006-07-07, 08:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •