Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Sharepoint Workflow Email - Lookup field changes when trying to use as a link ?? [modified]

Sharepoint Workflow Email - Lookup field changes when trying to use as a link ?? [modified]

Scheduled Pinned Locked Moved SharePoint
sharepointgraphicsdesignsysadmintesting
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nic Teeman
    wrote on last edited by
    #1

    Hi Guys Okay I'm going to try and explain this. I have a workflow that sends an email when a new task is created. One of the fields in the task is a single line of text for a user to copy and paste a path to a directory on our network. When the email is sent I want to then make this field a hyperlink so the user that receives the email can just click it and they're taken to the directory. Sounds easy... here's the code. A HREF="[%FCDrawing Request:Drawing Mark Ups%]">Link The entry in the field might look like this O:\01. Operations\02. New Sites\NSW\S1500 Testing\05. Drawings\01. CAD Files\Archive (Superseded)\Candidate A - Prime - Iss 02 Preliminary Design Now... when the email is sent the data in the field changes and it removes some spaces, which obviously means the link doesn't work. Here's what the link is now O:\01. Operations\02.New Sites\NSW\S1500 Testing\05. Drawings\01. CAD Files\Archive (Superseded)\CandidateA - Prime - Iss 02 Preliminary Design (look between '02.' and 'New Sites', the space has been removed) Any ideas why this might be happening?? If I don't include it as a link and just get the field to display in the email then it displays fine, the space is there and I can copy and paste the link and it works fine. Thoughts? Thanks Nic

    modified on Thursday, September 17, 2009 7:54 PM

    E 1 Reply Last reply
    0
    • N Nic Teeman

      Hi Guys Okay I'm going to try and explain this. I have a workflow that sends an email when a new task is created. One of the fields in the task is a single line of text for a user to copy and paste a path to a directory on our network. When the email is sent I want to then make this field a hyperlink so the user that receives the email can just click it and they're taken to the directory. Sounds easy... here's the code. A HREF="[%FCDrawing Request:Drawing Mark Ups%]">Link The entry in the field might look like this O:\01. Operations\02. New Sites\NSW\S1500 Testing\05. Drawings\01. CAD Files\Archive (Superseded)\Candidate A - Prime - Iss 02 Preliminary Design Now... when the email is sent the data in the field changes and it removes some spaces, which obviously means the link doesn't work. Here's what the link is now O:\01. Operations\02.New Sites\NSW\S1500 Testing\05. Drawings\01. CAD Files\Archive (Superseded)\CandidateA - Prime - Iss 02 Preliminary Design (look between '02.' and 'New Sites', the space has been removed) Any ideas why this might be happening?? If I don't include it as a link and just get the field to display in the email then it displays fine, the space is there and I can copy and paste the link and it works fine. Thoughts? Thanks Nic

      modified on Thursday, September 17, 2009 7:54 PM

      E Offline
      E Offline
      elizas
      wrote on last edited by
      #2

      First of all we need to know a little on SharePoint lookup fields before proceeding further. Lookup fields are the reference fields created in any SharePoint list or library which provides a mapping between columns from another list i.e. it is just like a foreign key which helps build relationship between lists. While developing custom solutions there is often a need to retrieve data from a list or update data in a list but it's a bit different when the task is performed for a lookup field. Generally lookup data are stored as ID - Name pair separated with some special characters (i.e. ID;#Name). http://www.mindfiresolutions.com/lp/sharepoint-development.htm[^]

      Cheers, Eliza

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups