Custom email notification with link - sitecore - workflow

I created a workflow as below, i want to send email with the link to the content approvers group when something is submitted? Can someone point me from where should i start with? which is the function that should be overridden ? Any help is appreciated
Thanks,
GT

Here is a good example of how to create a custom workflow email that can be sent to users in a particular Sitecore role (and the user who last edited the content item).
http://techmusingz.wordpress.com/2014/04/25/workflow-notifications-in-sitecore-roles-and-users/
You can link to a specific content item in the Sitecore client using the following method but you need to already be logged in to the Sitecore client for this to work (Otherwise you are just directed to the Sitecore login page and won't be redirected to the item after login).
/sitecore/shell/Applications/Content%20Manager/default.aspx?fo={id}&la={language}&vs={version}&mo=preview
fo - The item to open in the Sitecore client
la - The language to open (optional)
vs - The version to open (optional)
mo - preview
(optional)

Related

Can we call Lwc or Aura component inside VF Email Template

I have a requirement in which email notification we have to provide a link which will redirect approver immediately to the approval page. I found one relevant solution mentioned in below URL
URL :-
https://www.vandeveldejan.com/create-an-approval-notification-with-visualforce-email-template-containing-quote-and-quotelineitems/
which says to create visualforce component, I wanted to check if we can user LWC instead of visualforce.
As I am new to LWC expecting some help to understand if we can call LWC component inside Visualforce Email Template.
I have followed the same steps but wanted to know If I can use LWC compoenent or Aura instead of VF page compoenent
https://www.vandeveldejan.com/create-an-approval-notification-with-visualforce-email-template-containing-quote-and-quotelineitems/
No.
Think about it. You want to create an email that on opening would immediately start a browser (hope the user is logged in to salesforce) and navigate to some page? without user clicking anything? That'd be a security nightmare. Can I send you an email which will use your Amazon account to order some stuff for me ;)
You can't run javascript inside emails (and even if you could - email clients should block it) so no LWC runtime... How would it even login to SF to pull data?
You need to learn Visualforce for this email template or send the email straight from apex (write the email's plaintext/html body with apex)
You can create public community, create public page and add your custom AURA or LWC component. Then copy link to this public community with your new page and add recordId in URL. I did this in Lightning AURA.

Using spfx webparts, would there be a way to either programmatically send an email which has a link to open a modal or using flow?

I want an spfx made webpart that I've made be able to send an email (I'm using IEmailProperties at the moment) which provides a link to a modal form?
For example:
User clicks button in webpart, form loads.
User fills out form and submits it to SP list.
Form sends email on submission. Email has a link to the actual item created, so when the user clicks the provided email link, it opens up the modal form.
I would presume that the user would HAVE to be sent to the SP page where the webpart is unconditionally, but would it be possible to open up the modal corresponding to the SP list item?
Is this feature available in SharePoint framework, because if it isn't, compared to something like InfoPath 2013 or PowerApps it's quite a limitation.
I've researched this with several shallow Google searches and on gitHub for any premade stuff, but alas there is nothing that I've spotted.
I've been told IT IS possible:
"Yeah, they’d have to visit the page. Email clients don’t do JavaScript so you can’t really do interactive stuff there. If you want to take them directly to a page that then displays a modal, that’s plenty possible though. (e.g. display the modal based on if the URL contains a certain string)"
But wouldn't know how to do the above, can anyone start me on the right path?
Regards,
T
In the email, pass a query string containing the item ID/list ID etc of the item, then have the webpart read the See: How can I get query string values in JavaScript? If your values exist. If they do exist, then open the modal using some kind of framework like bootstrap or fluent UI. You can write your own form using PnPjs or use an iframe potentially to display the OOTB edit form.
Additionally, you can link to any page in SharePoint provided you use an extension instead of a webpart to host the modal. You can install extensions tenant wide, and have it listen for the query string.

What Typo3 newsletter extension can automatically fetch web content changes

The Typo3 extension tt_news enables for example all created news by this extension to be shown in the newsletter but not content from a "not news" page of the website.
We are looking for a plugin which automatically finds new content on the website and let us create a newsletter from it.
What extension could be used here? Might direct mail be able to do so?
Taken from the Direct Mail manual: "Newsletter pages are just normal pages. Their rendering is configured by the TS template."
A very simple solution for what you want to do would be to write a simple extension where you get the newest content elements and output them. Direct Mail itself will not do that for you, but it will send out any content that you provide on the "Newsletter page".

Sharepoint Workflow setup

Newbie to sharepoint but this thing didnt work for me as expected.
I am trying to have a sharepoint form:
1)Where accounts fills in section (presses submit, email sent to IT to fill in their section)
2) IT gets email, go fill in their section(press submit, email to MD to approve /reject)
3) MD approves/rejects
4) data saves
I have the form working, and using views am able to go between forms.
Issue is how
1)email alert to groups
2)half filled forms, given to other groups
Thanks
To Solve your first problem :
You can create an event reciver which will fire when an item is created in the list as well as when an existing item is changed in the list Or you can also create a workflow for this too.
There is an approval workflow OOTB which may be helpful for you too, but i am not sure about that.
For the Second question :
Whenever you open the existing item again, infopath form will automatically manage the data entered in the form and displays it as filled data.
Hope this helps.

Expressionengine 2 Login screen on Front Page

I would like to create a login screen for registered members on front page of the site without using members module. As I can see I can create a member and assign login credentials at back-end ( I don't have member module). Basically the idea is:
visiting: www.domain.com will give you login screen. When logged in it will redirect you or open new page.
I'm not looking to buy a module or extension. If something already exist I will be happy to use it.
Can anyone help?
You "don't have the members module"? How is that possible - it comes with the default install! So, something does already exist - it's called the Login Form tag.
So is the question how to create a login form on the front end of the site, or how to keep non-logged in users from viewing a specific template?
If it's the latter you can set access privileges at the template level. Look for the "Access" link by each template in the Template Manager, click that and you'll see your member groups and an option for what template to display if they aren't logged in. Typically that's a login template using the Login Form tags mentioned earlier.