Trigger email on lack of excel sharepoint edit interval - excel

I know I can create an alert in SharePoint every time a file is edited. Is there the facility or flow workflow to trigger email notifications if a file ISN'T edited for a specified amount of time e.g. 30 seconds.

There are no triggers available in ms flow to check if a file isn't edited for a specified amount of time.
As a workaround, you could build a scheduled flow and make it to run every 5 mins. Iterate through each file in the document library check the property Modified.if now-Modified>= 30s
then send an email notification.

Related

Office 365 Email Trigger when new mail arrives does not fire as required in Azure Logic Apps

I am witnessing quite recently that my Logic App which doesn't fire when a new Mail arrives. It's originally set to look every 1 minute, but regrettably, it doesn't fire at all; sometimes it fires after a big-time lapse.
This Logic App is set to look at any emails which arrive having an attachment of mostly less than 10KB files and the attachment type is *.csv. I am pretty sure I have not breached and office 365 limitations. Further, this Mailbox which is associated with this logic app is also linked with few other Logic apps to trigger when a new email arrives.
What I did so far to resolve this issue:
Decreased time to check new emails from 1 Minute to 45 Seconds
Added the Time-Zone
Changed the Email account
Press the Run Trigger button manually
but nothing seems to work except for point 4; where pressing the Run Trigger button manually fetches the new emails and the workflow continues.
Did anybody face this issue lately?
Thank you hiFI. Posting your suggestions as answer to help other community members.
As When new email arrives V2 is deprecated try using When new email arrives V3
Check the Deprecated for further information

LogicApps outlook.com connector GetEmails trigger - get oldest emails

I am trying to get oldest emails from outlook.com mailbox within LogicApp. I have done number of test and seems like both triggers available GetEmails and GetEmails(2) always start from the newest messages.
My use case:
Emails after processing are moved to Processed folder and shall be stored there for a month. So am looking for a way to get list of x number of oldest emails to check whether they are older than 30 days, and delete them if condition is met.
With the current functionality, I would have to get all the emails from the folder, what might be few thousands within 30 days time slot. This creates an unnecessary workload on the outlook.com but also within LogicApp. Additionally I am afraid I can reach thresholds for this connector.
Is there a way to get x number of emails starting from the oldest ones?
If you want to get top X oldest emails in a folder of outlook mailbox, you can use Microsoft Graph API by Http action in Logic App to get emails you want directly.
For instance , if I want to get top 5 oldest emails in Processed folder, use the API below :
GET https://graph.microsoft.com/v1.0/users/<username>/mailFolders('Processed')/messages?$orderby=receivedDateTime&$top=5
In logic App :
I have tested on my side and it works perfectly for me.
Details of Microsoft Graph outlook mail API see here .
And how to customize responses from API
And Auth for Microsoft Graph API.
If you have any further concerns, pls feel free to let me know.

How to create a metric alert in Azure that only fires during a specified timeframe?

I have a logic app set up that so that when a file is received on the FTP it gets put into the blob. The file is coming from a third party and it will be coming (supposedly) by 4am every morning. I want to set up an alert to know if the file didn't get received by 4am.
I've gone through all the different types of alerts and triggers, but I can't seem to figure out how to make one trigger when an event DOESN'T happen. I also can't figure out how to make the alert only check for a certain timeframe. I'm thinking I'm going to have to make my own alert by adding an action onto the logic app, but I'm at a loss.
Out of the box I don't think it's possible.
You could create a simple BlobTrigger Azure Function that when the file is changed/uploaded, the function will fire. When the function fires you can write a custom metric to app insights that you can then query on in the alert.
I solved this issue:
So I set up a logic app with a recurrence of 4am every day. It sets a flag variable to false, then lists every blob within the folder the blobs are coming in to. It checks every blob in it to see if the last modified date is today (the folder gets emptied daily with another logic) If it finds one it sets the flag as true and then nothing happens. If it doesn't the flag is still false so it sends an email saying the file was not sent today.

How to schedule email newsletter

How to schedule an email newsletter? Documentation seems to missing that. I have newsletter with widget that will take news from last 2 weeks. I would like to automatically send that newsletter every 2 weeks.
Kentico 11
Re-sending newsletters based on some interval (e.g every week) is not supported in Kentico at this time. It is possible through some customization, however.
By scheduling a newsletter to be sent at some time in the future, a scheduled task is created in the Scheduled Tasks application (under your site > System Tasks). This task only runs once and is then deleted, but you can alter the configuration of the task to run periodically and not delete itself. Or, you can manually create a task that uses CMS.Newsletters.QueueSender and TaskData equal to the issue's GUID.
There is another issue to solve once the task has been scheduled to run periodically- the issue's IssueStatus will be changed to Finished (5) after it is sent the first time, but the QueueSender will only re-send the issue if the status is ReadyForSending (1).
You can use an object event handler or custom scheduled task to automatically change the IssueStatus to 1 before the issue is sent once again.

Workflow that sends out a notification to archive vs. delete the document

I am setting up a retention policy against a document library that will run a workflow that will notify the admin to either delete or archive the document after x number of days.
Please help
Start the Workflow when the item is Created
Use the following Actions in your Workflow:
Pause for Duration (specify x days there)
Send an Email (specify Admins group and notification text)
can also use Microsoft Flow if thats easier which I think it is

Resources