I created a list and setup alerts that send to several individuals when a new item is added to the list. However, I have one additional requirement to have an alert email sent to a Public Folder in Exchange.
The folder is setup with an email address, VSrequest#domain.com, but when I try to add that address into the "Send Alerts To" field (when creating a new alert), SharePoint returns an error: "No Exact match was found."
I thought about setting up the alert in a custom workflow through SharePoint designer, but is there a way to easily reuse the existing Alert Email as a template for the body of the custom alert?
Any other ideas or pointers would be greatly appreciated!
You can't send an alert to a regular email address (or mailbox) because it isn't associated with a user/group. If it isn't associated with a user/group then it can't have permissions to any list or list items in SharePoint. Finally, if it doesn't have permissions then it can't receive an alert (or that would be a pretty big security hole).
Probably the easiest method is what you mention: using a custom SharePoint designer workflow. It isn't going to be 100% the same but you can just copy the HTML from a previous alert and then try to fill in the data as much as you can in the workflow. (see here for an article describing almost exactly what you want).
As you've seen you can't setup an alert against a random email address - it has to be against a user (who has an email address).
So one option would be to create a domain user for VSrequest#domain.com - ensure they are in SharePoints user list (Site Settings > Users and Groups > All Users) then you will be able to setup the alert for that user which will go to that email address.
Other options include workflow as Kit mentions, Event Receivers or 3rd party software.
Related
We have a travel request application. where a user submit a request which should go into 2 stages of approval process before it gets Final Approval.
Now we did the following:-
Create a SharePoint list which contain those fields; Title, Description, StareDate, EndDate, FirstApproval (the requestor direct manager), SecondApproval (the requester regional approval), Statues (system-generated with those options; open, first-approved, second-approved, Final-Approved).
Power Apps, which send emails to the first-approval and the second-approval users , and show-hide the Approved & Reject buttons based on the item status.
Power Automate,to set item-level permissions, so for example when the item needs first-approval only the approval's direct manager can edit the item, while all stakeholders can read-only.
now the process is not 100% secure, as a requestor using API call or using SharePoint built-in forms, can easily create a new request and define its status as Final-Approved. so in other words the requestor can bypass the Power Apps business logic. so how we can secure our process? so if an item has a status = "Final-Approved", then we can 100% sure that it actually went through the 2 approvals users?
One Approach i am thinking of, is as follow:-
To create additional SharePoint list >> which stores the ItemID + ItemStatus.
Grant all users Read-Only on this new list while grant the service account Contribute.
Update this new list from Power automate Only. so for example only if the submitter's direct manager did the approval, to change the status inside the new list to First-Approved, and so on.. Also only if the submitter's regional manager approve the request + there is already an approval from the direct manager to change the status from First-Approved to Second-Approval.. so what ever the status is inside the new lit i can be sure that it has not been hacked, as end-user will have read-only on this new list.. can anyone advice please?
Thanks
I believe this question is not unique to you, many SharePoint developers need to make specific configurations or use some artifices to ensure a certain process developed in SharePoint.
Using exclusive/custom permission control into List and uses the PowerAutomate layer to conntrol List Item permission only to approver will secures some update from Rest API, for example.
If you want to block New Insert items and/or block Update items by PowerApps, you can substitute the instruction into "OnEdit" and/or "OnNew" events using ResetForm(SharePointForm1);; RequestHide();; with this instructions in these events block some user to create or update SharePoint Items.
Into SharePoint list settings, in advanced settings, you can disable attachments, disable comments in list item, disable search, disable quick edit, disable launch form in dialog.
I think that's all.
In my org, there's a team who controls some of our policy and procedure. It's currently announced and tracked through a series of emails to the team, but that's less than ideal.
I'm going to set up a sharepoint page on our site where we can house these change emails and revisit them in a centralized location. Is there a way to automate the process of taking the content of the email and creating an entry on a sharepoint page of it?
Possible solution:
1. At Sharepoint, create "email enabled" document library. This will allow you send emails to library email address, email letter will be stored in this doc library.
2. For this doc library, create event receiver and handle onaitemadded(read email body and create or update corresponsing Sharepoint page)
How can I send details of SharePoint List Items though email without SharePoint development.
i.e
I have a list with 5 columns, and I want to send an automated email once the list item is saved ,which should include details of all 5 columns.
I know Workflow wouldn't help
I am using SharePoint 2010
I think alert will help you in this case, set an alert at list level so that when an item is added it will notify the user with email address.
But this thing to work , you must have Outbound email setup in central administration.
Hope this helps
I have created one custom list.
whenever user add entry to it then email should be triggerd to the manager and the user who has added new entry.
I am using Sharepoint 2007.
Please help.How to do this?
There is more than one way to send that email.
I'd recommend to create a EventReceiver or a workflow.
See How to: Create an Event Handler Feature, Sharepoint Workflow Development (2 part question) and Good online sources to learn Sharepoint Development?
You can override the item added event to capture the information about the item being added and use SMTP mail to send the mail to multiple users.Also, you can use the SPUtility.SendEmail function provided by Sharepoint.
I have a code activity that sends an email in a VS workflow. It simply sets the 'To' property to the name of a SharePoint group in the site collection. However, only the 1st person in the group gets emailed.
Any ideas why this is happening?
thanks
Does your group contain anything other than just users (ex: distribution lists, ad groups)?
If this is still a problem and you need to be able to send to a SharePoint group, I would recommend writing a custom workflow Action that would gather the emails of all the users in a specified group (you can find many tutorials online on how to make a custom action).
Turned out it was not even emailing the first user. I decided to extract the user emails programatically instead. Works fine.