SSIS Realtime scenarios-Send Mail Task - excel

how to get email from send mail task when Excel sheet have records daily
Example: I have 10 records in excel sheet on Monday
12 records on Tuesday
7 records on Wednesday
no records on Thursday on so on.
Scenario: If records are there i get mail. if no records are there i didn't get mail daily
Thanks

Here is what you should do:
Set up a User variable with the scope of the whole package
Use a row count transformation between the source and destination and stored it in the user variable
In control flow added constraints between data flow task and send mail task so that one or another 'path' was taken dependant on row count

Related

How to access inputted hours in Netsuite timesheet before the timesheet record is saved?

I am trying to do some calculations with the hours in the NetSuite Timesheet via SuiteScript. However, I can only access the inputted hours after I save the record. But for line validation purpose I would like to access the total hours per line before the record is saved. Does anyone know how?
On the link below you can see the image with the total hours per line circled in red (I am not allowed to post pictures yet apparently). That is what I want to be able to store in a variable in SuiteScript to do further calculations.
screenshot of hours that I need to access

Azure Boards work item: send email if unactioned after period of time

Is it possible to set an an automated email to be sent to a specified email address if an Azure Board work item hasn't been actioned within a specified time range?
i.e. if no action has been done on a work item for 5 days, send myself an email.
One of the workaround to automate this work is to use logicapps where I have tried to retrieve the Change Date for a desired work item and used dateDifference function to calculate the difference with today's date. When the difference is more than 5 days I tried to trigger an email. Below is the flow that worked for me.
Below is the expression I used for comparision
int(slice(string(dateDifference(body('Get_work_item_details')?['fields']?['System_ChangedDate'],utcNow())),0,2))
RESULTS:
Successful Run
In my Inbox

Total a SharePoint Column to include in an email sent by Power Automate

I've built a SharePoint calendar that I'm using to track employee vacation time. The employee logs into a PowerApp, enters their information (including the amount of hours they are requesting off) and clicks a submit button. When the submit button is clicked a flow is triggered which generates a "Send an Email with options" to obtain the manager's approval.
What I'm trying to do is total the number of hours that an employee has already taken off for the current calendar year. I need an action that will reference the same list and find all items where the:
Start Date is in the current calendar year
Employee Name is the same as the employee requesting the time off
Status = Approved
And return the sum of the Total Hours Used column for the approved entries for that particular employee.
The idea is that the email that is sent to the manager should tell the manager how much time the employee has been approved to take off so far this year.
I started to construct a Get SharePoint Items action, however, I'm not sure if it will work. Here is what I have:
Anyone have any thoughts?
You have to iterate through all the items & sum it up using Apply to each, Compose and Increment variable pieces together. Read more
For detailed learning - Iterate and get all items from a SharePoint Large List or Library using Microsoft Flow (no-code solution)

Send Cognos Burst Reporting to multiple emails

I have a few reports that need to be sent form hourly certain intervals during the day.
I know how to schedule burst jobs and they send out fine, but i am being tasked with sending that same exact thing to "CC" that persons mananagerl1 and managerl2
Lets say part of the email table looks like
Name | mgr1 | mgr2 | email | mgr1eml | mgr2email
normally i burst to email and group by name
how would i burst to all three emails without having to create 3 different reports?
It's been a while, but I think you can do it this way:
Use a comma delimited string for your email addresses:
blah#blahblah.com,foobar#foobar.com,...
Set your burst property to email addresses (Report Studio > File menu > Burst Options > Burst Recipient > Type).
To burst multiple groups with different hierarchies without creating multiple reports
For example,
a sales report with three levels of reporting -- branch managers, supervisors, and sales reps
The branch managers need to see the supervisors and sales reps that belong to them
The supervisors need to see the sales reps that belong to them
The sales reps should only see the orders that belong to them
So if we had 2 branch managers, each with 3 supervisors, and each supervisor has 4 sales reps
We would need to burst the report 20 times with 3 different groupings
This could be done with 3 reports or with 1 report that has 3 views
Solution
Create a prompt page with a value prompt to define the different groupings that will be used
Start with one list that includes all of the groupings that will be needed
Add to the query a data item for burst group and recipient
Define the data items based on the prompt page variable that defines the grouping
Create different list (from the same query), one for each group (at any hierarchy), grouping by the new data item
As a suggestion, for each list - use a text item to control the column heading. Or you could make a data item for the headings as well
Create a string variable based on the prompt variable
Render each list based on the variable from the prompt
Create a view from the report for each burst requirement
Set the prompt value for each view
Schedule the views
Any changes to the report will be seen in the views so you only have to maintain one report
You might want to try creating a job, then add the views to the job so you only have to schedule the job

How to send automatic email notification to user two days before expiry date

In SharePoint 2007 document library I want to send automatic email notification to user two days before expiry date.
After expiry date document will remain in the library.
Any suggestions would really be appreciated.
You just need to create workflow in SharePoint designer. During creation of an item the workflow starts and waits until execution date. If expiry date can be changed you need another action which cancels old workflow (with old date) and starts new one (with need date).
Here you can find instruction how it can be done in SPD
Create a SharePoint Designer (SPD) workflow
Select your task list
Set it to run on Create
Click Next
In the Actions section add these three actions:
- Add time to date
- Pause until date
- Send email
My example looks like this after the properties are set:
Add -7 days to Tasks:Due Date (Output to Variable: ReminderDate)
then Pause until Variable: Reminder Date
then Email this message (you can hard code the address or use the assigned to... )
Notes for this very simple example:
- If someone edits the task and sets a new due date, this workflow will still send the reminder based on the old date.
- It does not check to see if the Due Date is at least two days in the future.
Ref: http://social.msdn.microsoft.com/Forums/en-US/acb12dd2-d6a5-4b7e-b233-037558bfa2e5/start-workflow-x-days-before-expiry-date?forum=sharepointcustomizationlegacy

Resources