Get filename only with spd workflow

Hi
I want to get the filename of an image located in an image library. (i.e. myimage.jpg) ising SPD workflow
I've tried several options:
Curent Item:Web Image URL
Curent Item:PitureURL
The one that comes close is:
Curent Item:URL Path which gives:
/sites/mySiteCollection/myWeb/PictureLib/myimage.jpg
I actually want only the ending (myimage.jpg) is this possible?
The reason for this is that I am moving enviornments and then the full path wont work, in addition I am creating a template and when the new template gets cretaed and the site re-named the hard wired link wont work.
In the webpart (which is intended to read the filename) I will rebuild the url based on actual location.. I think anyway.
Thanks

Hi,
Here is a workaround for your reference:
We can create a new column named "FileName", then create an event receiver to set the value to this field when the item is added. Then use this column in the Workflow directly.
More information:
http://www.wombit.se/2013/10/24/sharepoint-2010-document-id-in-file-name/
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • Creating Onenote notebooks with SPD Site Workflow

    Hello together,
    I hope this is the right place for my question. If not (sorry!) feel free to move it to the correct forum.
    In our SP 2013 environment we have the situation as described below:
    a document library that contains multiple content types (e.g. 'MG Document').
    these content types are child types of 'Document' and should use an OneNote Template. I tried to use "Folder" as parent instead because it is used for ON files but it is only usable for simple file folders and not for OneNote files as far as I
    can see.
    a Sharepoint Designer (Site-)Workflow should initially create multiple ON notebooks with the template the content type is related to.
    1-2 are working. We are able to create new notebooks manually with MG Document content type. When executing the SPD Workflow (3) a notebook file is created, too. BUT I can not open this file.
    The following messages appear:
    "Onenote cannot open the requested package file. The file may be corrupted or may contain no OneNote sections"
    "We couldn't open that location. It might not exist or you might not have permission to open it"
    Does anyone have an idea how I can set up my custom content types in a way that allows me to create OneNote files with SPD workflows?
    Thanks in advance!

    Hi,
    Thank you for your question.
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • How-To: Migrate Classic Path-based SP2010 Site Collection with OOTB/SPD Workflows = To: Claims Different Path-based SP2013 Site Collection ?

    Hello,
    I want to move an entire site collection from an old SharePoint 2010 farm to a new SharePoint 2013 farm. But there are a few requirements:
    - The old SP2010 site collection contains multiple SPD Workflows and OOTB Workflows.
    - URLs must be changes as the example: 
    Source Site Collection URL: http://OldWebApp.SP2010.com/sites/OldSiteCollection 
    Destination Site Collection URL shall be: http://NewWebApp.SP2013.com/projects/NewSiteCollection
    - There are no custom solutions nor web parts.
    How to accomplis this successfully ?
    My steps would be:
    1) Copying the content database from SP2010 SQL to the SP2013 SQL via: Copy-only backup feature, or the traditional Backup & Restore.
    2) I have already the Web Application on the new SP2013 ready, So, I will just need to create the destination site collection in the SP2013 environment with the new desired URL: (http:\\NewWebApp.SP2013.com\projects\NewSiteCollection).
    3) Remove the newly created Content Database of the new site collection in the destination environment.
    4) Test-SPContentDatabase -name Old_Content_DB -webapplication http://NewWebApp.SP2013.com > C:\Issues.txt
    My worry is that the SP2010 Web Application is Classic-based and I cannot change the entire Web Application to Claims-based as it hosts other running site collections !
    Equally, My other worry is that the SP2013 Web Application is Claims-based and I cannot change the entire Web Application to Classic-based as it hosts other running site collections !
    First-Question=> I cannot run Convert-SPWebApplication as I don't want to impact the entire source nor destination web applications - How to resolve this?
    5) Mount-SPContentDatabase "Old_Content_DB" -DatabaseServer "DBServer" -WebApplication http://NewWebApp.SP2013.com
    Second-Question=> As I mentioned above that my requirement is to migrate this old SP2010 site collaction to a totally new URL in SP 2013. My concern is that after completing step-5, the site
    collection will overwrite the root new web application and it gets placed on: (http://NewWebApp.SP2013.com) !  I want it to be: (http://NewWebApp.SP2013.com/projects/NewSiteCollection) ? How to do this trick?
    Third-Question=> Will all the SPD Workflows & the OOTB Workflows work correctly after the entire site collection has been moved from SP2010 to SP2013? I am asking this because I seen this:
    (http://blogs.msdn.com/b/chandru/archive/2013/04/14/upgrading-spd-2010-workflows-to-spd-2013-workflows.aspx), and I got scared. What do you think ?
    Could you please help me out in my three questions ?

    Following are the steps:
    Take the backup of the content database in SP 2010.
    Create a classic based web application in SP 2013 using PowerShell.
    New-SPWebApplication -Name "TestApplication" -ApplicationPool "TestApplicationAppPool" -AuthenticationMethod "NTLM" -ApplicationPoolAc
    Create a content database in the web application created above.
    Mount the database 
    Mount-SPContentDatabase WSS_Content_100 -DatabaseServer SQL2012Demo -WebApplication http://sp2013demo:100
    Now convert the web application to use claims authentication:
    Convert-SPWebApplication -Identity "http://sp2013demo:100" -To Claims –RetainPermissions -Force
    Finally, migrate the users to use claims identity:
    $w = Get-SPWebApplication "http://sp2013demo:100"
    $w.MigrateUsers($True)
    See these links for more information:
    http://www.sharepointnadeem.com/2013/12/sharepoint-2013-upgrade-from-sharepoint.html
    http://www.sharepointnadeem.com/2014/01/upgrade-from-sharepoint-2010-classic.html
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • SPD Workflow - Update a hidden/read only field

    Hi there,
    I have a list with a hidden/read only field (ie Status).  So the user cannot update this field using the form or datasheet ...etc.
    I have an SPD workflow that I was hoping would modify the value of the Status field.  But it appears as though the option to modify it is not available as long as it is hidden and/or read-only.  Aka, the field doesn't show up in the list of fields
    to modify for the "Set field on current item" action.
    I was hoping to avoid importing this into a visual studio project and adding in code, which I believe would do the trick; so are there any solutions that I can do within SPD itself?
    Thanks in advance.

    Hi Eirc,
                       as i understand you question  you want to update hidden filed from workflow ? 
     solution 1 when workflow started it change field read only to false and after completing workflow
    change it again true.  by code.
    Solution 2 Use javascript to make the field read only on presentation.
    http://sputility.codeplex.com/ check this lib that might help you to manage readonly field on runtime
    Solution 3 : you achieve by setting column level permission 

  • I cannot get GPS Only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX

    It seems like I cannot get GPS only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX, garmin blueChart mobile, and a GPS monitoring tool. All show no signal. If I turn on cell and wifi,  it says I get gps signal, but can't tell if that is from the GPS chip, or just from cell and wifi only (maybe with some gps mixed in)?  Any ideas on how to get iPad working with GPS only??

    Roger that.  Thanks for your time.
    System:
    Windows 7 64bit
    Processor: AMD phenom IIX4 965
    RAM:  Gskill Ripsaw F3-12800CL7D-4GBRM (2-2GB sticks)
    GPU:EVGA Classified Nvidia GeForce GTX 560 Ti 448 core
    PSU: Kingwin 1000W laser gold (LZG-1000)
    Yes. tried the one ram stick, no go.  I have been trying to boot off/install the windows 7 disk but am unable to get to the point where windows starts installing after its gathering information portion of the install.  I can get to the disk selection screen of the install with the WD HD on SATA port 2 but then get the "cant install messages" when I try to select the Vertex 3.  Yes I can see the Vertex 3 Drive as well as the WD drive at this point.  some times I have to hit "scan" a couple of times.

  • TS1398 I can no longer sign in to my home fi (bt hub) with my iphone 4. Yet I can get on wireless with my laptop so the hub is working. The only thing Ive done different recently is download and use an app called Onavo mobile ltd which Ive now deleted, he

    I can no longer sign in to my home fi (bt hub) with my iphone 4. Yet I can get on wireless with my laptop so the hub is working. The only thing Ive done different recently is download and use an app called Onavo mobile ltd which Ive now deleted, help pls?

    Read another post in the forum about this and it appears this app also installs a profile with a proxy service that you will have to try and delete as well. Check that out.

  • Has anyone sent their iPhone to be repaired only to get it back with the same problems it had before it was sent off?

    Hi all.
    I reported two problems to Apple about my iPhone 4S. The first being that the 3G stopped working (my phone has never been dropped, damaged or gotten wet) and the second that it keeps making a random and incessant beeping sound that can only be described as a "warning tone" even though no notification pops up on the screen and after going through all of the preset tones on the phone, I couldn't find one that matches.
    I know that it's not my service provider's fault in regards to the 3G as I've put my SIM card in a friend's iPhone who is on the same network and the 3G worked perfectly fine.
    This isn't my gripe, my gripe is that after having explained this to Apple and sending them my phone (I still have about 40 days of my one year warranty), I received it back a few days later with the exact same problems!!!
    Has anyone else sent their iDevice off to get "fixed" only to find out that all they did was repackage your item and send it back to you?

    See if you can force the phone into recovery mode:
    Leave the USB cable connected to your computer, but NOT your phone, itunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new. Select restore from backup, follow by syncing your itunes content.

  • I am able to 'create a new version from original' but when I try to export the original, I only get a .jpg with the XMP file. The original is obviously there but why can't I access it please?

    In Aperture 3 when I right click on an image I am able to 'create new version from original' which suggests that the original is there. When I try to export the original I only get a .jpg with the XMP file. These particular images are from 2010, has the RAW file become disconnected somehow? Please, how do I get access to the RAW file for editing in Ps? Thank you. Thomasrevil.

    Sorry leonie, 'Use RAW as Original' is not an option for the image shot with the Canon.
    Then your Import settings must have been different, when you imported the Canon photos.
    You can check, if there is still a hidden raw file somewhere. If the image has been imported as a pair, you should see the "J" badge in Browser and Viewer, if you enable badge overlays. This indicates a pair, with the jpeg as original.
    Select one of those images, and then relocate the original files "File > Relocate original" to a folder, where you can inspect it. Use "File > Show in Finder" after ward. Look, don't touch .
    Then put it back, using "File > Consolidate".
    Do you see your raw files in the folder, or is only a jpeg there?

  • Why am I getting a blue box with question mark instead of logo image?  It happens in my signature (in gmail) and in mailchimp (again, only with the logo).

    Why am I getting a blue box with question mark instead of logo image?  It happens in my signature (in gmail) and in mailchimp (again, only with the logo).

    The question mark in the box, if it looks like this:   means that safari cannot find the linked image.  On windows machines, this would be the equivilant of  the small "page-with-a-red-X" logo that appears in the same scenario.  Check the reference to the image and make sure that the image is in the correct location, and is accessable by the reference.

  • When I use my Delete key to delete a song, I get a pop-up.  This is OK, except the Keep File button is defaulted and I cannot tab or arrow to the "Move to Trash" button, and so i need to use my mouse.  How can I do this only with keyboard?

    When using iTunes on my iMac, I use my Delete key to delete a song and I get a pop-up.  This is OK, except the Keep File button is defaulted and I cannot tab or arrow to the "Move to Trash" (or Cancel) button, and so I need to use my mouse.  How can I do this only with keyboard?

    Huh.. Interesting. I went back to check these proceedures and found there is a difference between using the return key or the space bar as the action command.
    tabbing the blue ring moves the selection and then spacebar takes that action. The return key takes action of only the blue collored button.
    .... learn somting new every day, even if it is somthing I previously forgot

  • Photos from the Internet will not load correctly. I get white boxes with blue question marks inside. This has only been happening for the past 3 weeks so I'm not sure why it is happening.

    Photos from the Internet will not load correctly. I get white boxes with blue question marks inside. This has only been happening for the past 3 weeks so I'm not sure why it is happening.

    Yes - email & text work fine but when I use something like Google Images or search a blog with imbedded photos I get the empty white boxes with question marks.  If I click the question mark it opens the photo but I can't possibly do that for EVERY image on EVERY page I search!?!?!  I've rebooted the iPad & my wireless card several times but neither action helped.  Have any clue what I should do now?

  • How to get filename with MMDDHHSS

    Hi
    How can I get file name with extension MMDDHHMM...I know time stamp is availabe but in the target system can only accept 10 characters.
    Example EL10020120
    It there any way I can acheive the same.
    Regards

    hi
    Set the file name using UDF in mapping. This will solve ur problem.
    refer these
    The specified item was not found.
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    rgds,
    Arun

  • I have to open website which opens only with google but not from safari. how can i get such google?

    i have a website which opens only with google, but not google from safari. how i can get google w/o using safari?

    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the errant extension by uninstalling and reinstalling it. Its settings will revert to their defaults. If the extension still causes a problem, remove it permanently or refer to its developer for support.

  • Can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    Hey damien555,
    Thanks for the question, I understand how frustrating this may be. It sounds like the update process may have been interrupted, and to resolve the issue, we’ll need to restore your device in recovery mode with iTunes:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Thanks,
    Matt M.

  • I use photoshop CS3. Shortly, when I try to use one of the tools, they react only with the eraser. So I cannot use the other tools. I tried to reset in general preferences all warnings. Then I can use the tools again, but with the next picture I get stuck

    I use photoshop CS3. Shortly, when I try to use one of the tools, they react only with the eraser. So I cannot use the other tools. I tried to reset in general preferences all warnings. Then I can use the tools again, but with the next picture I get stuck with the eraser again. What can I do? Joost van Santen

    Have you tried resetting all tools?

Maybe you are looking for

  • FaceTime on macbook pro takes long time to start up and sometimes crashes

    My FaceTime on my macbook pro is taking a long time to start up. It just bounces for in the dock for a long time until it finally opens. its really annoying since t takes a while to open and then sometimes it shuts down unexpectedly in the middle of

  • I've given up on Full Screen Apps

    At first I was very annoyed at the built-in rigidity of full screen apps. We called it a bug (it's not- no one at Apple cared to give the apps the flexibility they should have) and I hoped for a fix, but with so many desktops available and the full s

  • Can i transfer logic from old mac to new mac

    i have logic 9 ver 1.5 on a i mac os x 10.5.8 i just recenly bought new i mac os x and want to transfer logic app with all my songs

  • BEST PRACTICES FOR SAP BI7.0

    Hello SAP Gurus, We are working for a client who is in manufacturing business. Can anybody help us to provide some document for Best Practices to implement SAP BI7.0. Would appreciate. Thanks tried searching on sdn but did not get appropriate answer.

  • Output_link is there any easier (shorter) way??

    Is there any easier (shorter) way to create an simple link as the code below? I am wondering that the code for creating an simple link moved from one line <h:command_hyperlink href="login.jsp" label="Login Page"/> To 4 lines: <h:output_link value="lo