SharePoint: Workflows - Emailing hyperlink of list item.

I have a custom SharePoint (2013) list to manage tasks assigned to personnel and keep track of their statuses. I've created a workflow using SP Designer to send out an email to whom the task is assigned on the date for which it's due.
The workflow is working properly and email alerts are being sent, except for one thing. Inside the email body is a hyperlink to the associated record which the recipient clicks on to view (only view, not edit) the task details.
I got the record's hyperlink by accessing it's display form and copying the URL from the browser, pasting it into the email body. The URL's format looks something like this:
http://zeroshiki/sites/SP2010-Main-Site/Lists/Announcements/DispForm.aspx?ID=2&ContentTypeId=0x0104000933421F36DFF740B428FEC15871B493
Then I modified the URL by formulating a lookup to include the ID of the Current Item. In other words, the ID specified in the URL isn't fixed; it's based on the associated list item.
I've confirmed that when the recipient recieves an email, the ID in the URL matches the record's ID on the site. However, when they click on the link and are redirected to the record's display page, there's no data displayed. The fields are visible but the
values are not. Then I noticed that the URL in the browser does not match the one in the email; it's missing an ID value.
So when the URL in the email is ...DispForm.aspx?ID=2&ContentTypeId... it changes to ...DispForm.aspx?ID=&ContentTypeID...
Why does this happen? This method may seem strange to use, but I've tried looking up the "Encoded Absolute URL" and I get an error stating that the return type of the lookup is invalid. That's why I manually copied the URL format and formulated
the record ID.
Am I doing something wrong here? Is there a more straight-forward approach to retrieving the record's URL?

Hi,
According to your post, my understanding is that you wanted to send email with hyperlink.
In order to solve the problem more efficiently I need to clarify some information.
Did the hyperlink is the current item URL?
How did you set the hyperlink?
Per my knowledge, the "Encoded Absolute URL" result is https://sitename/Lists/listname/Id_.000
To get the current item URL, I recommend to we can use [%Workflow Context:Current Item URL%] with SharePoint Workflow 2010 platform,
Here is a similar thread for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/7dd2d0cb-97ff-4d9f-9c43-57109bb6bb3d/send-email-of-created-item-to-all-the-staff?forum=sharepointcust
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • SharePoint 2013 document generation from list items using workflow

    I have been able to generate docs from list items using sharepoint designer workflow.But i have been able to do this with using one document template. But i have like 6 templates i would like to use what do i need to do to get this rolling would i need to
    have 6 different doc libs with a doc template?
    Thanks in Advance

    Thanks Sharma.
    I have create 6 content type and associated doc templates to them. I read I should be using .docx instead of dotx which I also tried
    But im still getting the error
    When I click details no error details  to help at all.
    Can anyone who is having this issue help or give me some hints.
    Cheers

  • Does deleting Workflow also Delete Task List Items

    I have Sharepoint 2010 and I am using the standard workflow.
    I have created a new workflow and want to delete the previous workflow to avoid use.
    If I remove the previous workflow, what happens to the items in the Task List associated with the workflow?  Do they remain undisturbed or are they also deleted.

    Hi,
    According to your post, my understanding is that you wanted to know the action of the items in the Task List associated with the deleted workflow.
    In my environment, I create a task workflow using SharePoint Designer and then start the workflow in two items. No matter whether I approve the tasks or not,
    If I delete the workflow through UI: Click the Ribbon->List->Workflow Settings->Remove a workflow, the two tasks will be disappeared in the task list. However, the workflow will be remian in the SharePoint Designer.
    If I republish the workflow in the SharePoint Designer, the workflow will be associated to the list again.
    If I delete the workflow through the SharePoint Designer, the two tasks will be also disappeared in the task list. And the workflow will be removed in the Workflow Settings.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Workflow 2013 and custom list item 2013 security levels

    In a new workflow 2013 that will be using a new custom list 2013, I would like the following to occur:
    1. I would like to have the workflow have its own set of permissions,
    2. I would like the user to have their own set of permissions.
    Basically I would like the user and the workflows to have separate permission levels. This is due  to
    changing permission levels on the list after the user submits the list to the workflow. Basically I will have the user enter all the data they want to at different times and hit a custom 'save' button. However once the user hits the custom 'submit' button,
    I do not want the user to be able to change the data. I want the user to only have read or view access on the custom list that they submitted to the workflow.
    Thus can you tell me if what I am planning is possibly? If so, can you tell me and/or show me how to accomplish this goal?
    If this is not possible, do you have any suggestions on what else I could try and how would I proceed with your suggested method? Basically how would I setup your suggested method?

    I think this should be handled in the workflow form itself. Add a rule in the form that checks the status. If the user has already submitted the form, the submit should be disabled. Make sure have data fields to record status and user who submitted the
    form. If you don't have these fields already, add them and then setting up rule is easy. Having separate permissions is not possible anyway. User has permission on an object (in this case workflow). It is not possible that user has permissions (permissions
    on what? to do what?) and he cannot submit form. If the form is advanced and has code behind you can add code to change permissions on the list item. Then once user has submitted the form, change his permissions to read only. As I said, adding a rule and disabling
    the button is the easiest solution.
    Saifullah Shafiq
    Blog:  
    Twitter:   LinkedIn:
      Facebook:
      Google+:
      Latest Book:
    A Practical Guide to SharePoint 2013

  • Share with notification give wrong list item url

    Hi Experts,
    I am facing an issue with SharePoint notification email when sharing list item with users, the notification email gives wrong list item URL, in fact it gives strange URL like this (http://mycollection/sites/lists/list1/01_000)
    the strange thing that list item url is correct when sending share with notification if you apply it to document library, but it is not working well if you apply it to custom list!!
    can any body tell me whats wrong with SharePoint ? 

    Was it ever enabled. 
    Is this a restored list\library ?
    Do we have any workflow on same
    If this helped you resolve your issue, please mark it Answered

  • Auto-included link to list item not working in Workflow or email notification

    I made a workflow straight from my SharePoint site--NOT from SharePoint Designer. (My computer is still running on Windows XP, so I can't download Designer until my boss upgrades me to a newer system.) When creating the workflow, you have the option to include
    a link to the list item by clicking a checkbox. The links don't work in either the email notification or in the workflow properties. Extra characters are being added for some weird reason. (For example, the correct link looks like "https://www.w14b.comcast.net/sites/<yada
    yada>.docx" and the links in the workflow and email look like "http://www.w14spw-po-b1.com/sites/<yada yada>.docx")  I see no place to edit the URL. How do I fix the links???

    Hi,
    Please check if the http://www.w14spw-po-b1.com/sites/ is the url of default zone of the web application where this site resides.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/d17ad498-0b6f-4b12-9885-b8057fa04d88/sharepoint-2010-workflow-inserting-link-to-list-item?forum=sharepointgeneralprevious
    In addition, Windows XP SP3 is supported for SharePoint designer 2010:
    http://www.microsoft.com/en-in/download/details.aspx?id=16573
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SharePoint Designer Workflow to email multiple recipients listed in a custom list

    Hi all,
    I created a workflow in designer attached to a form library. I also have a custom list "Admins" containing names of persons that serves a different purpose but would also like to be used as recipients for the workflow email everytime a new item in the
    form library is created.
    I have been searching the net and tried out few work arounds but so far able to send to only one person in the "Admins" list. The list has a column "Admin Name" which is of type "Person or Group".
    Thanks in advance!

    You will not be able to do this specific task with SharePoint Designer workflows.  Like you stated, it can only target a specific value, based on the value in anoter column.  The easiest work-around would be to create a SharePoint security group
    that contains the users, then target that group in the Send Email action.  Just make sure that the group is configured for membership to be visible by all users.  I know it is not ideal to manage information twice, but this is a limitation of SharePoint
    Designer.Chris Caravajal MCTS SharePoint911 Consulting & Support Services

  • Send Email with Contents of List Item (not from workflow)

    End users have requested the capability to email a single list item, with all its data (by which they mean the data they see in their view), to an address to be entered on the fly. In other words, they want an option in the ECB or ribbon where
    they would fill in a box with an email address (not necessarily a SharePoint user) and the contents of the selected list item would be sent out by the portals email, which is already configured.
    My searching has found similar solutions involving workflows, but nothing in the way of an 'on-demand' type of process. If this is something that needs to be developed, I am not afraid to jump in, but am hoping there might be something I can leverage already
    in place.
    I would appreciate any ideas on this.
    Echo Train Nashville TN

    Hi Echo Train,
    I would still look at using a Workflow for this. Easiest option to setup and maintain, and
    you can still enter an email (or multiple emails) on demand.
    For the List Workflow click on Initiation Parameters and add one with
    Field name of Email for example.
    Description (something like): "Please enter the email(s) you wish to send the list item information. Separate each email with a semi colon ;"
    Information type: Single line of text
    Default value: leave it blank
    Next add a Send an Email action with the following settings:
    To: Select from existing Users and Groups > Workflow Lookup for a User...
    > Data source: Workflow Variables and Parameters
    > Field from source: Parameter: Email
    > Return field as: As String
    Then setup your Subject and Body using the Fields from the Current List Item
    Save the Workflow then go back into the Workflow settings and ensure that: Allow this workflow to be manually started is the only option selected.
    Publish the workflow and your users should now be able to click on the Workflow with the ability to enter one or more emails.
    There are other options apart from using a Workflow such as setting up an Action with some ECMA script, but much more difficult to create and maintain, which in this instance I would still opt for the Workflow solution.

  • Send an email alert when an item is added to web part from list.

    Hello, I'm a SharePoint 2010 newbie and have been tasked with a small project and would greatly appreciate any help. We have a web part on our home page that is populated from a query source list from one of our department's sites.  We would like
    for an alert email to be sent out when it hits the web part.  I was able to use the Alert Me feature on the list to send out an email however the alert had links to the source site page and we only want to have a link to the new item. 

    Hello,
    Do you have SP designer installed in your machine? If yes then create simple list workflow using designer then you can customize the email body as per your business need.
    Here is link to add current item link in email body:
    http://www.enjoysharepoint.com/Articles/Details/sharepoint-designer-2010-workflow-email-link-to-edit-item-or-20796.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to again add workflow to workflow completed list item?

    Hi All,
    How to again add workflow to workflow completed list item?Thanks!

    Hi,
    According to your description,my understanding is you want to add a new workflow to the completed list item.
    a) If yes, then you need to follow the same process attaching the workflow to the list/library and while deploying the workflow you should  select  the option "Allow this workflow to be manually started.......".
    Go to the workflow completed list item  and start the workflow which was created newly in the above step.
    b) If your query is want to restart the same workflow for completed list item then,
    You need to go to the workflow completed list item-->workflows-->start/click on  the workflow again.
    To do this, you might have selected the option "Allow this workflow to be manually started......." while attaching the workflow to the list.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ******************************************************************************************
    s p kumar

  • SPD 2013 - Copy Document action - how do you update the copied list item's metadata?

    SharePoint 2013 Designer no longer has the Copy List Item Action, it only has a Copy Document action. It seems that this action provides no way of saving the copied documents list item ID. How do you update the list item after it has been copied??
    Any help is appreciated.
    Greg Pierson

    Hi,
    According to your post, my understanding is that you wanted to copy the list item in SharePoint 2013.
    The Copy List Item is
    available only on the SharePoint 2010 Workflow platform, you can create a SharePoint 2010 workflow using the SharePoint 2010 workflow platform to achieve it.
    You can also use the Content and Structure to copy the list items: Site Settings->Site Administration->Content and Structure.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Open references of other list items from a list item in the same window or tab

    Hi there,
    We have migrated from lotus notes to sharepoint. We have converted the lotus notes forms to sharepoint forms. Basically the list items are pages and there are links of other pages in a page.
    My problem is I want to open the other pages in the same tab or window and not in a separate window.(currently the links open in a separate window which is not the requirement.)
    In terms of sharepoint I would say,
    I have references(links)  to other list items of the list in a single list item. I want to open the other list items in the same window (tab).
    How can we achieve this?? If possible without much codes??
    Please suggest.
    Any help will be highly appreciated.
    Thanks in advance

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • Update one list item to another list using WF

    hi
    i have a SP Designer workflow which copies one list item to another list
    but if i edit the 1st list this will copy a new item to another list i want the same item to be edited without making a new copy of the item.
    Alen Austin

    so in the workflow separate between on edit and on new item, so mostly you will need to either do checking and have variable saved to know if you are editing only, or create 2 workflows one when you add new item and other when u edit (if needed)
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • How to send current list item URL in email by using sharepoint 2010 workflow?

    Hi All,
    I had created sharepoint workflow usind SPD 2010. when new item is created it sends the email with link. But it sends current list link not the current item link.
    I tried to use Encoded Absolute URL but this like
    http://asdf.com/Lists/abc/10.00
    but i need something like this
    http://asdf.com/Lists/abc/DispForm.aspx?ID
    I have grow thorough some post and i found that,
    Statically i can write http://asdf.com/Lists/abc/DispForm.aspx?ID= and from Add lookup i can get ID by choosing current item.
    The link which i get is partially hyperlink like this
    http:aasdf.com/Lists/abc/DispForm.aspx?ID=10 (here 10 is not hyperlink)
    when i copy and paste this link it works fine but by clicking it i am not getting true result.
    Please help me to solve this issue.
    Thanks.

    Hi Raymond,
    It works for me. Thank you so much.
    I also have another issue related workflow. If you can help me, i really appreciate you.
    I already configured AAM. I have two Share Point Address which are:
    Default : http://default.com
    Internal : http://intranet.com
    I have List workflow using SharePoint Designer 2010. When new item get create, it sends email to person for approval. But when it sends email it sends Dafault zone URL.
    Dafault zone URL is only accessible through Virtual Machine. We cant access from local machine. So i need to send intranet zone URL in email so user can open through local machine.
    I tried it but i can only able to do for one list. I have to so this general for every list.
    How can i send intranet zone URL?
    Swapping the zone URL is not solution for this issue because after swapping situation is same.
    Thank You.

  • SharePoint Designer workflow - update list item field without creating new version?

    Hello,
    I have a list that uses versioning.
    I have a workflow, designed in SharePoint Designer, that will track changes in some columns, and if there is a change it will send out an email.
    To track the changes eg in the Status column, I have a hidden "OldStatus" column so I can compare the current value with the previous value.
    If it's different it means it has been changed, and I send out an email, then update the OldStatus with the current value so they're in sync again.
    Problem I have now is that when I update the OldStatus column in my workflow it will create a new version of the listitem. I don't want that. This is a system value change and has no value at all to the end user.
    In C# I can do a systemupdate to avoid this, but how can I do this in SharePoint Designer?
    Please don't tell me I should write the entire workflow in code, only to get access to the systemupdate command....

    I created a Worfklow Activity class, called "UpdateFieldInCurrentItemSilentMode".
    I add the default context properties to work with:
    #region Context properties
    public static DependencyProperty __ContextProperty = DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions")]
    [Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public WorkflowContext __Context
    get
    return ((WorkflowContext)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty, value);
    public static DependencyProperty __ListIdProperty = DependencyProperty.Register("__ListId", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public string __ListId
    get
    return ((string)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty, value);
    public static DependencyProperty __ListItemProperty = DependencyProperty.Register("__ListItem", typeof(int), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public int __ListItem
    get
    return ((int)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty, value);
    public static DependencyProperty __ActivationPropertiesProperty = DependencyProperty.Register("__ActivationProperties", typeof(SPWorkflowActivationProperties), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public SPWorkflowActivationProperties __ActivationProperties
    get
    return (SPWorkflowActivationProperties)base.GetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty);
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty, value);
    #endregion
    Then I add my own input parameters to work with:
    public static DependencyProperty StaticFieldNameProperty = DependencyProperty.Register("StaticFieldName", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string StaticFieldName
    get
    return Convert.ToString(base.GetValue(StaticFieldNameProperty));
    set
    base.SetValue(StaticFieldNameProperty, value);
    public static DependencyProperty FieldValueProperty = DependencyProperty.Register("FieldValue", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string FieldValue
    get
    return Convert.ToString(base.GetValue(FieldValueProperty));
    set
    base.SetValue(FieldValueProperty, value);
    Then the actual workflow action code:
    protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
    try
    if (this.__Context == null)
    throw new Exception("__Context is NULL");
    if (this.__Context.Site == null)
    throw new Exception("__Context.Site is NULL");
    //reload the web using the SPSite object to work around any limitations on the objects
    //applied to the user running the workflow
    SPWeb tmpweb = __Context.Web;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(tmpweb.Url))
    using (SPWeb web = site.OpenWeb())
    //load list
    SPList lst = web.Lists[new Guid(__ListId)];
    //load listitem
    SPListItem item = lst.GetItemById(__ListItem);
    //update field value
    item[this.StaticFieldName] = this.FieldValue;
    //commit changes
    item.SystemUpdate();
    //return success workflow status
    return ActivityExecutionStatus.Closed;
    catch (Exception exc)
    string sMsg = "Error in 'UpdateFieldInCurrentItemSilentMode':" + Environment.NewLine
    + exc.Message + Environment.NewLine + Environment.NewLine +
    "StaticFieldName: " + this.StaticFieldName + Environment.NewLine +
    "FieldValue: " + this.FieldValue;
    Common.WriteErrorToLog(sMsg);
    //return failed workflow status
    return ActivityExecutionStatus.Faulting;
    Note: the WriteErrorToLog function is a custom function that writes the error to the event log. It's located in another class. You can replace it with your own error handling approach.
    Then we need to specify the workflow action in the .actions file, so SharePoint Designer knows about it and which parameters are required:
    <Action Name="Set field in current item (silent mode)"
    ClassName="My.WorkflowActions.UpdateFieldInCurrentItemSilentMode"
    Assembly="My.WorkflowActions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0f8d2d9e2dfb2160"
    AppliesTo="all"
    Category="My Workflow Actions">
    <RuleDesigner Sentence="Set field %1 in current item to value %2 (silent mode)">
    <FieldBind Field="StaticFieldName" DesignerType="ParameterNames" Id="1" Text="StaticFieldName" />
    <FieldBind Field="FieldValue" DesignerType="ParameterNames" Id="2" Text="FieldValue" />
    </RuleDesigner>
    <Parameters>
    <Parameter Name="StaticFieldName" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="FieldValue" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" Direction="In" />
    <Parameter Name="__ListId" Type="System.String, mscorlib" Direction="In" />
    <Parameter Name="__ListItem" Type="System.Int32, mscorlib" Direction="In" />
    <Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="Out" />
    </Parameters>
    </Action>
    That is all you need for the specific code, the rest is common code to build custom workflow actions, which you can find on many blogposts or this forum.

Maybe you are looking for

  • How to put echo command and other command in same line in Terminal

    Hello everyone. I use GeekTool (v3.0.1) and was wondering if I could put an "echo" command and another command in a shell script such that the output would be 1 line only instead of 2 lines for the 2 commands. How do I do that?

  • TOC scrambled with headings from anchored objects

    I have a book design with first-level headings in the main text flow and second-level headings inside of anchored objects in the left margin of the pages. When I generate a TOC the headings used to be in the correct order, precisely as intended. Afte

  • Matching, syncing between iTunes and iPhone

    I am "lucky" to be one of the new iPhone 5 owners, after switching back from two years with android. Part of the reason for my switch was iTunes Match, which has been a constant confusing dissappintment. After several iPhone restores, lengthy phone c

  • HT201269 old ipod transfer content to new Macbook pro

    I am trying to transfer music from my ipod touch to my new macbook pro but i am unable to download the music from the ipod to the itunes on my macbook. any ideas??

  • Best way to upgrade the local repository from 11.7.3 to 12.2.3.3 DS 3

    Hi, we are going to upgrade our DI 11.7.3 to DS3 - 12.2.3.3 in Sep. I found out there are different ways to upgrade the local repository from the SAP doc and tech support. I try to find a best and safe way to do it. If anyone had experince and inputs