Showing posts with label Notification. Show all posts
Showing posts with label Notification. Show all posts

Wednesday, November 14, 2018

Adding Links to Notification Emails

Hi Everyone,

There is sometimes a task to add dynamic or static links to system generated Notifications.
Here is how to do it.

1. Add a field to a screen, where your dynamic link will be generated and stored.

URL Field
Adding URL Filed


2. Create a notification Template adding there a link with the content from the field above:

Notification Screen
Referencing a link in the Notification

As a result your notification will get the Link from the field.

Notification with the link
Notification Template with the Link added


All the best,
Sergey.

Wednesday, September 12, 2018

Acumatica Notification. How to Pass Empty Field Condition.

Hi Guys,

Today will be a short one.

Just realized Acumatica is not very good at handling conditions at Notifications screen.

When you need to Notify someone you create Automation Notification with the exact condition of when to do it.

Potentially, there could be a case when you wish to call a notification ONLY when certain field is Empty. So, how?

It is empty, does not mean NULL, because field may be not nullable, so IsNull will not work.
How? ='' Does not work..... Any other ideas?

After 30 mins of various tries found a solution.

Acumatica Notification Screen

In my case TnC field supposed to be empty. So we use:

Start With in the Condition column, AND we just put ONE single SPACE into Value field.

You cant see space on the picture but I tell you it is there....

OMG.....

Best,
Sergey.

Monday, June 8, 2015

Sending Mail Issues. SMTP server configuration.

Hi Everyone,

For those using Send Mail functionality in Acumatica, there is almost always a problem with SMTP servers, they may not process your e-mail due to certain conditions are not met.

For example, you may have Office 365 account and willing to add it to Acumatica as a system E-Mail account.

There will be an issue when other persons start sending mails from Acumatica, as Office 365 server require Sender to be exactly your account name or at least a person from your domain.

There could also be a case when you set up Acumatica in your internal domain, and are not willing to expose / connect it directly to a public mail server.

Easiest way to avoid these problems is to install an SMTP Relay server at your office. Well this is not really a hardware box server, just a piece of software running on one of your machines, it could even run on Acumatica server itself, as it does not depend on anything, well at least we don't want it to.

So I was looking for a good candidate for SMTP relay with some "alter" functions on the outgoing e-mails and found this software:  EMailRelay Software

This is not just open source, freeware, SMTP relay. It is also a Message Transfer Agent. Meaning it can change the Envelope of your E-Mail, it can also change the content of the Header or Body of your E-mail.

This is perfectly what we need - to alter "From:" address, in case of Office 365 usage.

Also this software can work as a server. I will not go deep into installation procedures, it is simple enough, just download correct version (32 or 64 bit) then unpack it, run the configurator, it will guide you through simple steps. Put Office 365 Server as a relay server. Make sure port 25 is open for incoming E-Mails. You can also configure it as a service, to run when you log off from the machine.

Now, the most interesting part, altering the body of the message and envelope.

Software comes with 4 examples in JavaScript, that you can use.
What it does: when message is received from Acumatica, but not yet relayed to Office 365 SMTP, there is an option - to run Java Script and alter the content of the E-Mail.

What I have done in my script file, you can make your own file by the way:


Please make sure you added a call into a BAT file that system created for SMTP relay, to invoke these alterations. --filter parameter.



Happy mailing!

All the best,
Sergey.

Sunday, September 23, 2012

Creating Links to External Files.

Hi Everyone,

This article is about linking external files to Acumatica entities without uploading to the database.

Document Management in Acumatica is great, but sometimes, customer may want to link files from existing third-party storage to Acumatica.

What we currently have in our product:

1. We can upload file into Acumatica entities, by just clicking on Attachment button. It is true for almost all the screens. We can attach files to each line of the grid as well. But this is not what our customer wants.



2. We can pass the link to existing file or document from Acumatica to the user. For example, we send link by e-mail then another user can paste it into the browser and access that file. And again this is not what we need.



3. We do have an option to insert a link to a third party file of web site inside acumatica as well.
This is what I wanted to describe in better details.

For example I would like to attach external file, located at local area network resource, to my Project. Lets open an existing Project. Links are made via Activities, therefore we should navigate straight to Activities Tab.

Next I open the Activity called Test and if I just add local folder on my PC like a text it will not work. But intention is to have something like this, working:

This way we can add simple text, but not the link.
In order to add a link I will use Microsoft Word to create a hyperlink first. I need to create a link to a FILE, not FOLDER in order for the function to work.


After I click OK, just Right Click on C:\Well\AcumaticaERPInstall.msi inside the WORD document and copy the HyperLink to clipboard
 

And then Paste the hyperlink into the Activity message body, please use Ctrl-V


Now lets save the Activity and get back to the project Activity History screen.
In order for the list to refresh just click on some other activity and get back to original one. It will refresh the NOTES area.

Now what you see is one non-working and another working link to a file:


All the best,

See you on the Partner Meeting 4th October.

Sergey.

Thursday, July 19, 2012

Sending Report over E-mail. Scheduling.

Hi Everyone,

Today's topic is automation and integration.
How to send a report over the e-mail?
First let's choose a report we want to send, lets take Aged AR:

Then we can use a Send button on top to manually send it over e-mail. It works fine for one-time send.

Then enter e-mail address into mailer screen:

Resulting e-mail will get delivered into recipient mail box.

What if we want to schedule printing of this report every morning for a list or recipients, like our AR department. Then we have to go back to report and:

1. Create a template with specifying address to send:


 2. Choose this template from the list and click "Schedule template":

3. Set up a schedule for sending at particular time/date/event:
Then we setup hours and conditions if any, in my case I setup daily at specific time.
Then at that time we will get an e-mail with report:

All the best,
Sergey.

Monday, July 16, 2012

Sending Notifications.

Hi All,

One of the common questions, when implementing automation for operations is - how can we send an email notification to a person that such and such is happened?
It could be for example Purchase Order is created and we want short e-mail to get send to procurement chief.

Using Notifications in Acumatica is a natural answer to all that.

Task: I want to send a notification to Steve Church once the purchase order status is changed to Open (meaning PO is approved/printed).

Step 1. We should set appropriate e-mail to the user Steve Church

Step 2. Now need to create a notification in system manager.

Please note, Screen ID should be Purchase Order, since we want changing of the status in THIS screen to trigger a notification event. In the Message body I want to be mentioned that system should include actual PO number that was created, so I use standard Template Notification syntax of ((fieldname)). I also want actual PO Form to get attached to my e-mail, so user can review it, I just added Data Source: Report with format PDF.

On the next tabs I mentioned Event Conditions, Addresses, Parameters, which are self explanatory:

3. Now we have to decide if we send these notifications using a schedule or manually calling a process. I wanted to use a manual process, but schedule can be added that will trigger it every say 1 minute.


4. Now we can finally go to the Purchase Order and "open" one, to see what will happen:

After it was saved lets take a look at Send Notification screen. My note is pending (since I was lazy to create a schedule) so I run the process manually:


5. Enjoy reading e-mail

Have Fun,
Sergey.