Pause until return date and time

I have a Motor vehicle Request list in SharePoint 2013 were users will log a vehicle request, in that list the is a departure date and time and return date and time.
I want to pause the workflow until return date and time, I tried using the "Pause for" its just gave me an error tired the Pause until its just pause and don't continue
Any solution for this
Would Appreciate any help
P.Michelle

check this
http://www.smellslikesharepoint.com/2012/06/26/sharepoint-2010-workflow-pause-until-date-and-time/
http://social.technet.microsoft.com/Forums/sharepoint/en-US/af5b8c79-f167-4780-8dba-d603b94896ff/workflow-stucks-in-progress-when-using-a-pause-until-date?forum=sharepointgeneralprevious

Similar Messages

  • Apple TV3 setup reports that: "iTunes login failed - cannot sign-in until Network date and time has been set".

    During Apple TV setup, I have not been able to complete the Home Sharing process. Computer/iTunes Home Sharing is setup, but ATV "blocks" its Home Sharing setup. After my Apple ID and password is entered, ATV reports a failure. Also, attempts to login to iTunes from ATV, ATV reports: "iTunes login failed - cannot sign-in until Network date and time has been set". It directs me to the Network tab, but there's no option to set date and time. I have no clue how to do that.
    Help!!! Thanks in advance to anyone who knows how to solve this.

    Welcome to the Apple Community.
    There are things to look out for to make sure your Apple TV can reach the network time server, such as ensuring port 123 is open and only using the DNS address provided by your ISP, but since it was OK one moment and not the next, my guess is these settings are already correct.
    As for the restart, did you try restarting by removing ALL the cables for 30 seconds.

  • Function Module to get Date and Time out of Timestamp

    Hi,
    Source system timestamp field CREATED_TS of Type DEC-15
    BW PSA data in format 20.140.707.105.948
    In DSO, I have created two target InfoObjects; one for Date and one for Time.
    In transformation from PSA to DSO, in field level routine, I want to split timestamp into Date and Time.
    There is a function module CACS_TIMESTAMP_GET_DATE in source system but it is not available in BW. Another function module ADDR_CONVERT_TIMESTAMP_TO_DATE which is available in BW but returns only Date. 
    Does anyone know a function module in BW which takes Timestamp (PSA data in format 20.140.707.105.948) and returns Date and Time.
    Much better would be a FM which take timestamp and also Timezone  and returns Date and Time.
    Thanks
    Ahmad

    Timestamp to date time conversion (with time zone) is built into ABAP. Why use a function module?
    Read the ABAP help on CONVERT.

  • Getting Date and Time

    Hi Gurus,
    Issue: At present the Shipment Execution time is defaulting to Local Time but the requirement is to always populate Eastern Standard Time (EST). Right now if the shipment creates in US West coast, shipment Execution Date and Time populates with that local time but I need to populate EST.
    I need a function module which will take input as 'Time Zone' like EST and return Date and Time (OR) the input could be 'Country' and State and return the local time.
    Thanks in Advance.
    Regards,
    ananth.

    Here is your solution.
    The function module IB_CONVERT_INTO_TIMESTAMP is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's time zone, default value SY-ZONLO). The output parameter is the timestamp in GMT.
    The function module IB_CONVERT_FROM_TIMESTAMP is used to get the time in required time zone. The input parameters for this are the timestamp obtained from the above function module and the time zone, to which the time needs to be converted.
    The output parameters are the date, time in the required time zone.

  • Trying to connect apple tv brand new and the screen says 'activating' setting date and time indefinately

    just trying to connect to apple tv for the first time and the screen just stays at 'activating' setting time and date and wont let me sign in to itunes sharing until the date and time thing is fulfilled.  any thoughts on troubleshooting this issue?  thanks

    Hi I had same problems and couldn't understand most of the solutions on offer as I'm a bit of a Luddite. The problem seems to be getting ATV to register your network time and date details following the upgrade of software. I use a wireless connection at home and my firewall was blocking the ATV from obtaining this information. Instead of changing router settings, firmware etc (which is beyond me) I solved it this way:
    1. Rather than use my existing wireless connection I connected the ATV to my iPhone personal hotspot (iPhone has 3G connection). It may be another network could also be effective.
    2. ATV connected via the iPhone no problem apparently got the network time and date settings ok.
    3. The previous ATV functionality was restored.
    3. I then disconnected from my iPhone hotspot and re-connected to my main wireless connection. All worked fine.
    It seems what you need to do is side-step the router firewall problem. Hope it works for others.

  • Get-Hotfix InstalledOn property not returning hotfix installed Date and Time on Windows Server 2008 SP2 but works on Windows Server 2008 R2 SP1

    Hi,
          I am working on a validation script to get the list of hotfixes installed on Domain Controllers every month as part of our monthly DC patching process. I have been successful in getting these details for DC's with (Windows Server 2008
    R2 SP1, Powershell v2.0) using the below command. 
    Get-HotFix -cn $computer | Select-Object PSComputerName,HotFixID,Description,InstalledBy,InstalledOn | where InstalledOn -ge (Get-Date -Day 1 -Format d) | FT -AutoSize
    I execute the above from a jump box with powershell v4.0 (Server 2008 R2)
    However, when I try the same command from the jump box to query DC's with (Server 2008 SP2, powershell v2.0). It doesn't return the InstalledOn date and time. It was giving error for the InstalledOn property and hence I renamed it to $_.InstalledOn. Now
    I don't get error but still no details displayed for InstalledOn property.
    I tried using the below, as could see on few forums that this might resolve the issue. I also tried removing the "where" part but still no installation date returned. 
    Get-HotFix -cn $computer | Select-Object HotFixID, Description, InstalledBy, @{l="InstalledOn";e={[DateTime]::Parse($_.psbase.properties["installedon"].value,$([System.Globalization.CultureInfo]::GetCultureInfo("en-US")))}}
    | where {$_.InstalledOn -ge (Get-Date -Day 1 -Format d)} | FT -AutoSize
    Have tried this locally on the 2008 SP2 DC but still not working. Please advise what is going wrong? 
    Note: If I execute the below command locally on the 2008 SP2 DC, I am getting the InstalledOn output. However, when executed from the jump box with powershell v4.0 (Server 2008 R2) to query
    the same 2008 SP2 DC, it just gives the prompt again without any error or output. This behavior is consistent for other 2008 SP2 DC's in the environment.
    Get-HotFix -cn $computer | Select-Object HotfixID,Description,InstalledBy,InstalledOn | where {$_.InstalledOn -ge (Get-Date -Day 1 -Format d)} | FT -AutoSize

    Hi jrv, I have already tried the Win32_QuickFixEngineering option, which doesn't work either. Apologies for not mentioning the workarounds that I have already tried.
    Get-Hotfix seems to be just a wrapper for Win32_QuickFixEngineering as per the below article. (http://technet.microsoft.com/en-us/library/hh849836.aspx)
    I have seen a mention of using the WU ActiveX control on few forums, but was too lazy to read it through.
    After rigorous testing, it makes me realize that somewhere the Get-Hotfix dates formatting\comparison isn't working. 

  • My system time is always wrong, until I open date and time

    Hello,
    I have my system set to auto-update time.
    However every time I boot up, the time is wrong, until I go into date and time.
    For instance, right now, my system time says's it it 10:40 AM. It is currently 5:40 PM PST (had to look at my phone to know)
    Please help me fix this ASAP!
    Nick

    Hey Nick
    If you have a desktop, there is a battery inside that keeps tabs on the time when it is powered down, or unplugged. If you have a laptop, that's the job of the battery that supplies your laptop when it's running.
    if you have a desktop, most likely the battery is dead. This is a user replaceable part, so unplug it, look around inside for something that looks like a battery(like a AAA one, but not exactly), pull it out, and find a replacement.
    If you have a laptop as I do, and your battery won't hold a charge very long, as mine won't, then every time I turn it on, I have to go into Date & Time and tell it to update.
    Hope this helps.

  • Mag Safe power cord sparks when connected or disconnected--whereupon the MacBook Pro 13'' dumps date and time, and all passwords, plus any/all unsaved information.

    I purchased my MacBook Pro 13" from the Apple Store in Tucson, AZ, in mid-January. Since then, every time the Mag-Safe cord is jostled, not even disconnected, sparks fly from the power terminal on the computer, the computer shuts down, and dumps its passwords, as well as the date and time.
    Any work in progress is also lost.
    I work overseas, and Apple's advice was to give them my credit card number, await shipment of a new power supply and cord, and then, when I return the old power supply and cord, i'd receive a credit. That won't work, as packages from the US to my location take weeks if they arrive at all. There is no Apple Store within a reasonable distance. Or, Apple suggests, when I'm home on leave in mid-June, I should bring the computer to the Apple Store for repair--I have only days in which to do that, but I suppose I'll need to try. My concern is that I'll need to return overseas without my computer and won't be able to retrieve it for months, until my next leave.
    This issue shows up elsewhere online. Is there a short in the power terminal in the computer, or on the Mag-Safe power cord, or within the computer itself? It's a known issue, thus I wonder why it hasn't been fixed.

    Odd, but here's a copy of Page 1 of the links I got:
    Apple Portables: Troubleshooting MagSafe adapters26 May 2011 ... If the spark comes from somewhere other than the blades of the plug, .... Apple Portables: Reducing cable strain on your MagSafe power ...
    support.apple.com › Support - Cached
    Apple - Support - Discussions - Magsafe sparked when plugging into ... 
    2 posts - 2 authors - Last post: 22 FebI plugged my magsafe adapter into my macbook pro (mid 2010 model i think ...
    discussions.apple.com › ... › Power and Batteries on a MacBook Pro - Cached 
    Mag Safe power cord sparks when...: Apple Support Communities6 Jun 2011 ... Mag Safe power cord sparks when connected or disconnected ...
    https://discussions.apple.com/message/15350172
    Show more results from apple.com
    Apple power brick sparks lawsuit • The  Register
    - 4:52am6 May 2009 ... Apple power brick sparks lawsuit ... Apple, for its part, made the MagSafe one of the featured, um, features of the MacBook Pro when it ...
    www.theregister.co.uk/2009/05/06/apple_magsafe_lawsuit/ - Cached - Similar
    My MagSafe sparks everytime - Philippine Mac Users Group 
    10 posts - 6 authors - Last post: 31 Mar 2008Guys, I seem to have a problem, well you  see my MagSafe sparks everytime I plug it into a power source. I'm experiencing this problem at ...
    www.philmug.ph › ... › Mobile Macs › Archives - Cached - Similar 
    @apple MagSafe failure sparking all over the place, not recalled ...1 Jan 2011 ... ryanol: @apple MagSafe failure sparking all over the place, not recalled? Not repairable 79 bucks  later #applefail another design fail for ...
    constantlycomplaining.com/.../@apple-magsafe-failure-sparking-all-over-place,-not-recalled%3F-not-repairable-79-bucks-later- - Cached
    Great Northern Insurance Company sues Apple over fire-causing MagSafe2 Dec 2010 ... Over the past few years, Apple has been on the receiving end of more ... indicating that Apple's MagSafe adapters were prone to sparking and ...
    www.edibleapple.com/great-northern-insurance-company-sues-apple-over-fire-causing-magsafe-adapter/ - Cached
    Amazon.com: Apple MagSafe 60W Power Adapter for MacBook MA538LL/A ...Genuine Apple 60W MagSafe Power Adapter for MacBook A1184 · 3.9 out of 5 stars (11) .... like it was burning.. the covering on the cord melted off.. sparked ...
    www.amazon.com › ... › Laptop Battery Chargers - Cached - Similar
    Insurance company claims Apple's 'dangerous' MagSafe started fire ... 
    40 posts - 29 authors - Last post: 30 Nov 2010A newly filed lawsuit claims that Apple's MagSafe charger, ... Apple to heating, burning and sparking problems with its MagSafe adapters," ...
    forums.appleinsider.com › Future Apple Hardware - Cached 
    Spark it up!!! "Apple announces Magsafe out of warranty ... 
    3 posts - 3 authors - Last post: 19 Aug 2008Info.: "This one concerns faulty Magsafe power adaptors that shipped with MacBook (13-inch Late 2006), MacBook (13-inch), ...
    forums.macresource.com/read.php?1,546534,546743 - Cached 

  • How can i have the date and time show up on my canon vixia hf m50

    Cannot get the date and time to show up onscreen in ANY videos on my new vixia HF M50. Can somebody help me on this?

    Hello Jerrysulew, 
    You can show the date and time using the Captions option.  The process is described below.
    Add a new level of enjoyment to your scenes by decorating them. You can add animated graphics, stamps and even your own freehand drawings. The supplied stylus pen will be especially useful for decorating scenes.
    You can decorate scenes as they are being recorded.
    IMPORTANT
    The screens and settings that appear may differ depending on the model you are using.
    NOTE
    You can open the decoration screen when the LCD panel is stowed with the LCD screen facing away from the camcorder. In such case, make sure [Autostart Decoration] is set to [On].
    Decorating Scenes while Recording
    1. Touch [ 
    2. Touch [Decoration].
    3. The decoration mode screen appears.
    On the decoration screen, there is a canvas where you can draw freely, and a toolbar with tools lined up for creating your drawings.
    Select the tool you want to use from the toolbar, and make drawings on the canvas.
    Icon
    Tool name
    Function
    Pens and Stamps
    Select the type of pen or stamp and its color. You can also save a canvas or load a previously saved canvas.
    Animated Stamps
    Select animated stamps to add to your decoration.
    Captions
    Add the date, date and time, story title* or story theme* as a caption that will be included in the recording.
    Image Mix**
    Choose one of 27 different frames to add onto the canvas. Image mix can be used in combination with the pens, stamps and animated stamps.
    Freeze screen**
    In recording mode: pause the live video. Touch [ 
     again to restore the live video. You can add decorations to and record the frozen image.
    In playback mode: pause the playback. Touch [ 
     ] to resume playing back the scene.
    Minimize toolbar
    Minimize the toolbar to the top of the screen to view almost all of the canvas. Touch [ 
     ] to restore the toolbar.
    * Not available in 
     mode.
    **Not available in 
     mode and for MP4 movies.
    4. Use a tool from the toolbar as explained in the following procedures.
    5. PressYou can add decorations even while recording a scene.
    6. Touch [ 
     ] to exit the decoration screen.
    NOTE
    For AVCHD movies, decorations will appear in the thumbnails of scenes in the [ AVCHD Movies] index screen and gallery. For MP4 movies, decorations will not appear in thumbnails.
    To use [Pens and Stamps]
    1. Touch [ 
    The [Pens and Stamps] screen will appear.
    2. Select the desired pen or stamp from [Tools].
    Select Colors.
    Touch [ 
    Select white or black from [Colors].
    Alternatively, you can touch [ 
     ] and select a color from the displayed colors.
    3. Draw freely on the canvas.
    Touch [ 
     ] > [Clear] > [Yes] to clear the canvas and start again.
    NOTE
    The canvas with decorations can be deleted, saved, and loaded.
    You can save the decorated canvas right after a decorating action.
    If the memory that contains the canvas is initialized, the canvas will be deleted.
    To use [Animated Stamps]
    1. Touch [ 
    2. Touch one of the control buttons.
    3. Touch anywhere on the canvas to place the selected animated stamp. You can also drag some animated stamps to a different location.
    NOTE
    When the [Animated Stamps] tool is used, the date/time will not be displayed or recorded.
    To use [Captions]
    1. Touch [ 
    2. Touch [Date] or [Time].
    When recording a scene using Story Creator, you can also select [Title]
    (the story&&&&&&&&&s title) or [Story Scene] (the story scene category).
    3. Select the desired text settings and touch [ 
    Touch [ 
     ] (white text on dark background), [ 
     ] (white text) or [ 
     ] (black text).
    Touch the caption and drag it to the desired location.
    To use image mix
    1. Touch [ 
     ] to open the [Select Image] screen.
    2. Touch [ON].
    3. Touch [+] or [-] to select a different image mix frame.
    You can touch one of the memory icons at the bottom of the screen to read image mix frames saved on a different memory (When recording on or playing back scenes from a memory card).
    Touch [ 
     ] to mix the selected frame with the live video.
    NOTE
    When [Rec Media for Movies] is set to [ 
     ] (the built-in memory), you will not be able to select image mix frames saved on a memory card (For camcorders that have internal memory only).
    For AVCHD movies, image mix cannot be selected during playback or while converting a scene to standard definition (For camcorders that have internal memory only). Select the image mix during playback pause or before starting the conversion.
    To use freeze screen
    1. Touch [ 
    The control button will change to [ 
     ] and the picture will be frozen.
    Decorate the screen using the other tools in the palette.
    2. Press the
    The decorations created will be recorded with recording scenes that are on pause.
    Press the
    Touch [ 
     ]. The screen will return to normal.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Reseting the date and time on photosmart 5510

    Having replaced the internal battery,the date and time on scanned items to memory card is giving 1st january 2001.how can i reset this.

    Hey @dube55,
    I am aware that your Photosmart model does not have a fax. Because I do not have a Photosmart 5510 here and have no access to the Embedded Web Server I gave you the generic tab options. My apologies for the confusion.
    The Date and Time option under the Embedded Web Server for your printer should be located under Settings or Tools. It may be under a sub-menu on the left hand side, such as System or Preferences. Feel free to click on the options to explore what you are able to alter on your machine.
    If you still do not see a Date and Time option we will need to run a Power Reset on the printer. Doing so should prompt you to enter the date and time when reconfiguring your printer. If this fails, we may need to run a Factory Restore.
    How to Perform a Hard Reset:
    Turn your printer ON
    With the printer ON disconnect the power cable from the rear of the printer for 30 seconds
    Plug the power cable back in
    The printer should start back up on its own
    Once the printer returns to the ready state, try another scan to verify if the time and date stamp is correct
    Should the issue persist, please proceed with the reset below.
    How to Restore Factory Defaults:
    Turn your printer ON
    Touch the right arrow button until you see Setup (wrench)
    Touch the Setup button
    Select Tools
    Select Restore Factory Defaults
    Choose Yes
    Once the Restore is complete your printer should start back up and may prompt you to enter the date and time.
    Please let me know if these steps work for you. Best of luck!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • DVD camcorder (VIDEO_TS) - preserve clip date and time

    I had asked this question on the forums a long time ago but iMovie did not seem to be supporting it reliably at the time. But since some time has passed, I wanted to check if iMovie '09 can import clips from a mini DVD (those used in camcorders to capture video directly on to DVD media) AND preserve the clip's date and time.
    What I see is that the first clip gets some date and time related to the event's date and time (perhaps the start time of the first clip?) but all the other clips which are imported, get timestamps of 1 second after that first clip's timestamp.
    These are all my home videos and in order to keep each clip short, I have had the habit of pausing after about a minute or two, resulting in MANY clips over MANY DVD's, so manually updating date and time is absolutely the last resort.
    The DVD player can see the clip date and time correctly, and so could the camcorder (I have since sold the darn thing!) so I know that information exists somewhere in the DVD, but it seems like iMovie is unable to "see" it.
    Any help would be appreciated, including programmability hints.

    Thank you for your post.  I figured out why iMovie was assigning today's date to everything that I imported.  It turns out that many of my video files did not have a real "created" date--some had no date at all and some had Wednesday, December, 1967 or 9 (I think).  iMovie defaulted today's date in both of these situations.  I took your advice and ot A Better Finder Attribute and easily converted all of the files using the option to copy the "modified date" into the "created date" attribute.  Now everything imports correctly into iMovie.

  • Function Modules for Data and Time

    Hi all,
              I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
    Thanks in advance

    Hi Ranjith,
    i think this will b usefull for you..
    SAP Bar Chart Function Modules and what they are used for
    Function module
    Used for
    BARC_GRAPHIC_PBO
    Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
    BARC_GRAPHIC_PAI
    Analyzing data returned by the graphic
    BARC_SET_TIME_AXIS
    Setting start and end of time axis
    BARC_SET_OPTIONS
    Setting options
    BARC_ADD_CHART
    Creating a chart
    BARC_SET_CHART_ATTRIB
    Setting chart attributes
    BARC_ADD_SECTION
    Creating a section on the time axis
    BARC_SET_SECTION_ATTRIB
    Setting section attributes
    BARC_ADD_RIBBON
    Adding a ribbon to the time axis
    BARC_SET_RIBBON_ATTRIB
    Setting attributes for ribbons in the chart
    BARC_ADD_GRID
    Adding a time grid
    BARC_SET_GRID_ATTRIB
    Setting grid attributes
    BARC_ADD_LAYER
    Adding a layer (graphic elements)
    BARC_SET_LAYER_ATTRIB
    Setting layer attributes
    BARC_ADD_LINE
    Adding a line
    BARC_ADD_CALENDAR
    Creating a calendar
    BARC_SET_CALENDAR_ATTRIB
    Setting attributes for a calendar
    BARC_ADD_TIME_PROFILE
    Creating time profiles
    BARC_SET_TIME_PROFILE_ATTRIB
    Setting attributes for time profile
    BARC_ADD_INTERVAL
    Adding a time interval
    BARC_SET_INTERVAL_ATTRIB
    Setting time interval attributes
    BARC_ADD_TIME_OBJECT
    Creating a time object
    BARC_CONVERT_DATE
    Creating a date string in bar chart format
    BARC_REVERT_DATE
    Converting a date string in bar chart format to date and time
    BARC_ADD_DATELINE
    Creating a date line
    BARC_SET_DATELINE_ATTRIB
    Setting dateline attributes
    BARC_GET_PROFILE_CONTENTS
    Obtaining profile contents for customizing a chart
    BARC_GET_COLUMN_WIDTH
    Selecting new column width
    BARC_SET_COLUMN_WIDTH
    Setting the column width
    BARC_GET_TEXTINDEX
    Obtaining the text index of a field
    BARC_SET_LABELS
    Positioning the chart display
    BARC_SET_COLUMN_ATTRIB
    Setting column attributes
    BARC_SET_ROW_ATTRIB
    Setting row attributes
    BARC_SET_ROW_HEIGHT
    Setting the line height
    BARC_SET_MAXCHARTS
    Setting the maximum number of charts sent
    <b>If its usefull reward points
    </b>

  • Work Status Report Date and Time Setting

    Hi all
    We are running BPC10 on servers configured with Central European Time which is currently 2 hours ahead of GMT allowing for Daylight Savings Time.
    From what i can see in BPC10 date and times are now stored in GMT (Zulu time) in the Audit activity tables so when a user updates the work status at say 11:00AM local CET time then a value of 09:00AM GMT is stored in the Audit Activity Header table.
    We have a report in excel that uses the EVLCK formula and will return the correct value of 11:00 am however if we run the Work Status Audit report on the Planning and Consolidation home page with user preferences set to Central European Time +1 then the time is displayed as 10:00am suggesting that daylight savings time is not accounted for. We need to set the time to Eastern European time +2 hours to display the correct figure.
    Can anyone explain why this happens? Has DST been overlooked?
    Rgds
    Alan

    Hi Alan,
    probably it's a bug, I think it's better you open an OSS message to SAP.
    Regards
         Roberto

  • APPLE TV 2 HD model and updated to latest version 6.1.1 since doing that it won't set date and time and tells me my Apple ID and password are incorrect and I know there not. What do I do?

    It connects to internet fine. I have tried restoring back to factory condition and hard wire update by connecting it to my Mac mini .
    The date and time won't set. And won't acknowledge my Apple ID and password......... I am usually tech savy but this has caused me grief .
    Do I need to downgrade my update....
    But can't get any menus until I log in my apple account...
    It can't log into my iTunes account until time and date have been set.
    When I did the hard wire restore connected to Mac mini it wouldn't go past the date and time screen as it wouldn't when I did the wifi update too.
    it just would get past that screen.
    Anyone help!!

    This is the result of a network issue.  Ensure port 123 on the router is open.

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

Maybe you are looking for

  • Cannot push contacts to Motorola L2

    Copying contact entries from my Motorola L2 to Address Book through iSync: No problem. Inadvertently deleting contacts from phone through Address Book and iSync: No problem. Copying restored contacts from Address Book back to phone: BIG problem. Noth

  • Dynamically updating a form

    Anyone know what I'm doing wrong? I have dynamic multiple rows being spit out into a form that I want to be able to go through the form, make my changes and use 1 submit button. Then I need to update those results in the database according to their i

  • TS3276 How do I delete a large email that has crashed my mail system?

    I have sent an email that is too large, and appears to have crashed the mail system. I have accidentally done this before, and got help from the call centre (they are closed today) but cannot remember how to fix the problem by deleting the large outg

  • CS3 or wait for CS4?

    Hi, I've read bits and pieces of news for CS4 like 64 bit support, new code or something and was just wondering if CS3 wont upgrade to CS4? I'm not the expert but I'm sure thats not the case. But I don't want to upgrade to CS3 if a CS4 update wont be

  • Xml display problem

    Hi experts, I have issue in transfer data from SAP to XML. Program is working perfect. I used in program 2 function modules: u2018SDIXML_DATA_TO_DOMu2019, u2018SDIXML_DOM_TO_XMLu2019 Display data like this: So how can I do that? Please give me some i