0

I want to send email alert with dynamic subject

  1. When a new item is added ,the subject of the email alert must be 'New item added'.
  2. When i edit that item,the subject of the email should be 'Item Modified'

How can i achieve this in a single workflow

i have checked the condition if currentItem:created equals currentItem:modified then email_message(a new variable) will be 'New Item Added' else email_message will be Item Modified

Any help would be appreciated.Thanks.

2
  • If you're using MS Flow/PowrAutomate, you can easily accomplish this by:if(equals(triggerOutputs()?['body/Created'], triggerOutputs()?['body/Modified']), 'New Item Added', 'Item Modified') Oct 18 '20 at 16:07
  • What is the version of SharePoint you are using? Online or on-premises? Oct 19 '20 at 1:22
0

That would be the default behavior if you select both "created" and "changed" in Start Options.

See a similar post here: workflow that checks if item is new or modified.

So if you plan to write the actions in one SharePoint Designer workflow, the workflow will be triggered on new item creation only the first time, and on item modification for the rest of times.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.