Post

1 follower Follow
0
Avatar

Rule Set up - Send E-mail When Expense Sheet is Approved

A rule was set up so that when an expense sheet is submitted and approved, an e-mail would go out to our AP group letting them know the expense/invoice was approved and they can go through their payment process.  The e-mail goes out when the item was approved but it is missing information that we need in there.  The e-mail set up is below:

Dear AP Team,

The Expense Sheet  - {$Name} - was approved.

You can now follow this link to see the documents attached to this expense sheet in Clarizen: {CurrentObject()}

-- Of the 8 that were approved, 1 e-mail went out and included the name of the expense sheet so the AP group would know which one was approved.  The other 7 went out with a code like "E-1901".

 Also at the end of the last line, we wanted a link to appear so the AP group can click on link and go directly to the invoice, that does not show up on any e-mails.

There is only one rule setup.  Why would it send out the e-mails differently?

Thanks

 

Jnitolo Answered

Please sign in to leave a comment.

7 comments

0
Avatar

I'm not sure why this would have been different but in one portion of the email it will grab the name and in the other you will only get the ID.  {CurrentObject()} should just display the ID.  I would change this to {GetHyperlink(CurrentObject().Name)}.  That will give you the name and it will be hyperlinked to that object. 

Josh Santos 0 votes
Comment actions Permalink
0
Avatar

Josh, thanks for responding.  When I remove the current object entry and add the one you suggested, I get the following error:

Error: Function CurrentObject() doesn't support nested fields

Jnitolo 0 votes
Comment actions Permalink
0
Avatar

Can you try killing the .Name part and see if the linking works?

Josh Santos 0 votes
Comment actions Permalink
0
Avatar

That returns no error, thanks. 

Would the following entry return the Description field entry? Cause that's where we have the Company name and invoice #.

The Expense Sheet  - {$Description} - was approved.

Jnitolo 0 votes
Comment actions Permalink
0
Avatar

Yes, that should work. Remember you can cheat and lookup fields and functions by clicking on the "formula options" link.  You can add any field related to that object into those emails.

Josh Santos 0 votes
Comment actions Permalink
0
Avatar

Thanks.

I've looked through their and not much fits.  Where can I edit the fields that appear there so I can add more?

Jnitolo 0 votes
Comment actions Permalink
0
Avatar

You would head over to the customization section, select the object (expenses or expense sheet), and then add custom fields. You could then add these new fields as columns, include them in the emails, etc.

Josh Santos 0 votes
Comment actions Permalink