Run workflow when a new item is added and set a fields value

we require a workflow which should run when a new item is added to the form library(infopath)  and should update the value of a field "title" with the filename(eg:111.xml).
Please let us know, how we can accomplish it.
Thanks,
Zedprog
My blog: http://sharepointr.com - ZedProg Profile

Hello,
You need to use "Update List Item" action to update any item in list/library. Refer this link for sample:
http://3sharp.com/blog/updating-list-items-with-sharepoint-designer/
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

Similar Messages

  • Receive push notification when a new item is added to a shared list in Reminders.app?

    I want to use the Reminders app on my iPhone to share a list with my wife. The sharing is set up easily, but I want to receive an alert when she adds something to the list. Does anyone know if this is possible. We weren't able to figure it out and have since switched to AnyList which does offer this feature on shared lists. But I'd rather use Reminders because of it's integration with Mac OS.

    Hi,
    Why workflow? If you just need to send email then you can use "Alert Me" feature. If you want to approve the item via workflow then just create OOTB workflow from list settings page.
    Finally if you need designer workflow then follow below link:
    http://office.microsoft.com/en-001/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Workflow for creating new item and updating list

    I believe that the answer is easy, but because I am already having trouble with this issue for few days I am getting blind to see the solution:)
    I have two lists and a workflow running behind. Basically when new item is created in first list, workflow makes a copy in second list. Because this workflow works only when new item is added, I have a problem when item is updated, items in second list just
    disappear - are empty. I believe that I have a problem with workflow, because somehow I should also have in to update list in case of change.
    Please help.
    Thanks in advance

    Hi,
    According to your description, my understanding is that the workflow you created was not started when an item was updated in first list.
    Did you check the option “Start workflow automatically when an item is changed” in SharePoint Designer?
    Did you sign in as system accout?
    Please use another list to check whether this issue occurs.
    If this issue still occurs, please provide screenshot about the details of the workflow in order to find out what goes wrong.
    Thanks,
    Dean Wang

  • JTable checkboxes doesn't retain their selection when a new row is added!!

    HI,
    My gui has the JTable component which has 5 columns. out of which 4 columns are checkboxes. whenever i select an item from the Jlist and click on the add button it will add a new row in JTable.
    but the problem is whenever a new row is added to the table. the previously selected checkboxes of previous rows are being deselected. But i want to retain the selection of my previous rows even when a new row is added. please help me how to achieve this..i am posting my JTable code here:
    class FunctionTableModel extends AbstractTableModel{
           /** The instances who's attribute structure we are reporting */
        //protected InitModel m_init;
        protected String func_element;
        protected int counter;
        //protected String[] func_array;
        protected Vector func_vector;
        /** The flag for whether the instance will be included */
        protected boolean [] m_Sum;
        protected boolean [] m_Min;
        protected boolean [] m_Avg;
        protected boolean [] m_Max;
        protected boolean [] m_SD;
         * Creates the tablemodel with the given set of instances.
         * @param instances the initial set of Instances
        public FunctionTableModel() {
          counter =0;
             func_vector = new Vector();
         public FunctionTableModel(Vector vec) {
            func_vector = vec;
        public Vector getDataVector(){
            return func_vector;
         * Sets the tablemodel to look at a new set of instances.
         * @param instances the new set of Instances.
        public void setElement(Vector vec) {
               for(int i=0;i<vec.size();i++){
            func_vector.add(vec.elementAt(i));
            counter++;
          fireTableDataChanged();   
          m_Sum = new boolean [counter];
          m_Min = new boolean[counter];
          m_Avg = new boolean[counter];
          m_Max = new boolean[counter];
          m_SD = new boolean[counter];
         * Gets the number of attributes.
         * @return the number of attributes.
        public int getRowCount() {
               return func_vector.size();
         * Gets the number of columns: 3
         * @return 3
        public int getColumnCount() {
          return 6;
         * Gets a table cell
         * @param row the row index
         * @param column the column index
         * @return the value at row, column
        public Object getValueAt(int row, int column) {
          switch (column) {
          case 0:
            return func_vector.elementAt(row);
          case 1:
            return new Boolean(m_Sum[row]);
          case 2:
            return new Boolean(m_Min[row]);
          case 3:
            return new Boolean(m_Avg[row]);
          case 4:
            return new Boolean(m_Max[row]);
          case 5:
            return new Boolean(m_SD[row]); 
          default:
            return null;
        public void removeAll(){
            func_vector.removeAllElements();
            fireTableDataChanged();
         * Gets the name for a column.
         * @param column the column index.
         * @return the name of the column.
        public String getColumnName(int column) {
          switch (column) {
          case 0:
            return new String("Function Selected");
          case 1:
            return new String("Sum");
          case 2:
            return new String("Min");
          case 3:
            return new String("Avg");
          case 4:
            return new String("Max");
          case 5:
            return new String("SD");   
          default:
         return null;
         * Sets the value at a cell.
         * @param value the new value.
         * @param row the row index.
         * @param col the column index.
        public void setValueAt(Object value, int row, int col) {
          if(col == 0){
            counter++;
            func_vector.add(counter,value.toString());
          if (col == 1)
            m_Sum[row] = ((Boolean) value).booleanValue();
          if (col == 2)
            m_Min[row] = ((Boolean) value).booleanValue();
          if (col == 3)
            m_Avg[row] = ((Boolean) value).booleanValue();
          if (col == 4)
            m_Max[row] = ((Boolean) value).booleanValue();
          if (col == 5)
            m_SD[row] = ((Boolean) value).booleanValue();       
         * Gets the class of elements in a column.
         * @param col the column index.
         * @return the class of elements in the column.
        public Class getColumnClass(int col) {
             return getValueAt(0, col).getClass();
         * Returns true if the column is the "selected" column.
         * @param row ignored
         * @param col the column index.
         * @return true if col == 1.
        public boolean isCellEditable(int row, int col) {
          if (col >= 1) {
             return true;
          return false;
        public void removeRow(int row){
            if(row<=func_vector.size()){
                          func_vector.removeElementAt(row);
                counter--;
            fireTableDataChanged();
        }

    hi parvathi,
    i have made changes to my previous code and here's the code:
      class FunctionTableModel extends DefaultTableModel{
           /** The instances who's attribute structure we are reporting */
        //protected InitModel m_init;
        protected String func_element;
        protected int counter;
        protected int counter1;
        //protected String[] func_array;
        protected Vector func_vector;
        /** The flag for whether the instance will be included */
        protected boolean [] m_Sum;
        protected boolean [] m_Min;
        protected boolean [] m_Avg;
        protected boolean [] m_Max;
        protected boolean [] m_SD;
        //protected Vector m_Sum1;
        //protected Vector m_Min1;
        //protected Vector m_Avg1;
        //protected Vector m_Max1;
        //protected Vector m_SD1;
         * Creates the tablemodel with the given set of instances.
         * @param instances the initial set of Instances
        public FunctionTableModel() {
            System.out.println("entered the constr");
          counter =0;
          //counter1=0;
          //m_Sum1 = new Vector();
          //m_Min1 = new Vector();
          //m_Avg1 = new Vector();
          //m_Max1 = new Vector();
          //m_SD1 = new Vector();
          //func_array = new String[];
          func_vector = new Vector();
         public FunctionTableModel(Vector vec) {
            func_vector = vec;
            //setElement(func_vector);
        public Vector getDataVector(){
            return func_vector;
         * Sets the tablemodel to look at a new set of instances.
         * @param instances the new set of Instances.
        public void addRow(Vector vec) {
          //counter++; 
          //func_element = ele;
          //System.out.println("FunctionTableModel- setElement() method");
          for(int i=0;i<vec.size();i++){
            func_vector.add(vec.elementAt(i));
            counter++;  
           //System.out.println("counter ="+counter+new boolean[counter]); 
            //m_Sum1 = m_Sum;
            //m_Min1 = m_Min;
            //m_Avg1 = m_Avg;
            //m_Max1 = m_Max;
            //m_SD1 = m_SD;
            //m_Sum = new boolean[counter];
            //System.out.println("at setElement");
            m_Sum = new boolean[counter];
            //System.out.println(counter);
            m_Min = new boolean[counter];
            //m_Min;
            m_Avg = new boolean[counter];
            //m_Avg1 = m_Avg;
            m_Max = new boolean[counter];
            //m_Max1 = m_Max;
            m_SD = new boolean[counter];
            //m_SD1 = m_SD;
            //counter1++;
          //func_array[counter]=ele;
          //func_vector.add(counter,ele);
          fireTableDataChanged();  
         * Gets the number of attributes.
         * @return the number of attributes.
        //public int getRowCount() {
          //System.out.println("FunctionTableModel- getRowCount() method");
          //return func_vector.size();
         * Gets the number of columns: 3
         * @return 3
        public int getColumnCount() {
          return 6;
         * Gets a table cell
         * @param row the row index
         * @param column the column index
         * @return the value at row, column
        public Object getValueAt(int row, int column) {
          switch (column) {
          case 0:
            return func_vector.elementAt(row);
          case 1:{
            //System.out.println("in case 1");
            //Boolean m_Sum_Value = new Boolean(m_Sum[row]);
            //System.out.println("m_Sum_Value:"+m_Sum_Value.booleanValue());
            return new Boolean(m_Sum[row]);
            //m_Sum1.add(m_Sum_Value);
            //return m_Sum_Value;
          case 2:
            return new Boolean(m_Min[row]);
          case 3:
            return new Boolean(m_Avg[row]);
          case 4:
            return new Boolean(m_Max[row]);
          case 5:
            return new Boolean(m_SD[row]); 
          default:
            return null;
        public void removeAll(){
            func_vector.removeAllElements();
            //m_Sum1.removeAllElements();
            fireTableDataChanged();
         * Gets the name for a column.
         * @param column the column index.
         * @return the name of the column.
        public String getColumnName(int column) {
          switch (column) {
          case 0:
            return new String("Function Selected");
          case 1:
            return new String("Sum");
          case 2:
            return new String("Min");
          case 3:
            return new String("Avg");
          case 4:
            return new String("Max");
          case 5:
            return new String("SD");   
          default:
         return null;
         * Sets the value at a cell.
         * @param value the new value.
         * @param row the row index.
         * @param col the column index.
        public void setValueAt(Object value, int row, int col) {
          if(col == 0){
            counter++;
            func_vector.add(counter,value.toString());
          if (col == 1) {
            m_Sum[row] = ((Boolean) value).booleanValue();
            //System.out.println("m_Sum length "+m_Sum.length);
            //for(int i=0;i<=row;i++)
            //    System.out.println("m_Sum1 "+i+((Boolean)m_Sum1.elementAt(i)).booleanValue());
            //System.out.println("m_Sum1["+row+"] "+ ((Boolean)m_Sum1.elementAt(row)).booleanValue());
            //    System.out.println("m_Sum["+i+"] "+ m_Sum);
    if (col == 2)
    m_Min[row] = ((Boolean) value).booleanValue();
    if (col == 3)
    m_Avg[row] = ((Boolean) value).booleanValue();
    if (col == 4)
    m_Max[row] = ((Boolean) value).booleanValue();
    if (col == 5)
    m_SD[row] = ((Boolean) value).booleanValue();
    * Gets the class of elements in a column.
    * @param col the column index.
    * @return the class of elements in the column.
    public Class getColumnClass(int col) {
    return getValueAt(0, col).getClass();
    * Returns true if the column is the "selected" column.
    * @param row ignored
    * @param col the column index.
    * @return true if col == 1.
    public boolean isCellEditable(int row, int col) {
    if (col >= 1) {
         return true;
    return false;
    public void removeRow(int row){
    if(row<=func_vector.size()){
    func_vector.removeElementAt(row);
    counter--;
    fireTableDataChanged();
    previouslu i was using the setElement method. now i have replaced with the addRow method...
    but anyways...the control is not going to any of these overridden methods...and none of the elements are added to the table. But i comment of all the addRow, getValueAt, getColumnClass methods...then it's adding rows to the table but with only the first column all the remaiing columns are just empty...
    i am fed up with this...if you observe i have commented out somany lines...becoz i am trying to save my boolean array values into a vector..but that was also in vain...
    i appreciate for ur help...
    thanks
    sri

  • Since I upgraded to Yosemite I see "iMac" followed by a long number under "Shared" in the navigatie column of Finder. Every day a new item is added with the same number, but followed by (1), (2) etc. My iMac has gotten very slooooow.

    Since I upgrade my iMac to Yosemite I see "iMac" followed by a long number under "Shared" in the navigatie column of the Finder. Every day a new item is added with the same name and number, but followed by (1), (2) etc.
    I use Time Machine.

    I suffered with numbers next to my unit's name in Shared Devices, Finder Pane.
    What I did was turned off my Time Capsule and whilst it was off I renamed my Macbook Pro in System Preferences / Shared.
    I turned on the Time Capsule and thus far, 12 hours later the change has stuck.
    There are many people suffering this bug, it's to do with ghosting on your network... Where your current machine see's itself as a ghost, hence you get a numbered mac...???

  • Why "New Item" in ribbon and "Add new item" in xsllistview link to different form

    Hi all,
    I have a question. I have a list with two new forms, one is created in SPD the other one is created in InfoPath (both forms are created by developer).
    I don't know why the new form link to different page when I click "New Item" in ribbon and "Add new item" in list view.
    1. Will open new form that created in InfoPath when click on "New Item" in ribbon.
    2. Will open new form that created in SPD when click on "Add new item" in list view.

    One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
    <br>
    Or you could make a simple function to return the correct link based on the relevant parameters:<br>
    <br>
    create or replace function get_url (p_criteria in varchar2) return varchar2<br>
    is<br>
    lv_url varchar2(500);<br>
    begin<br>
    if p_criteria = 'Personal' then<br>
    lv_url := 'http://host:port/pls/portal/etc...';<br>
    end if;<br>
    etc...<br>
    return '&LT;a href="' || lv_url || '"&GT;' || p_criteria || '&LT;/a&GT;';<br>
    end;<br>
    <br>
    Your report could then include the function as one of the columns in your report.<br>
    Not very elegant but it should do the job.
    Patrick.

  • HT1600 I bought my Macbook Pro OS X Lion 10.7.5 in january 2012 brand new from my local apple store and i am sure they said that it would run AIRPLAY. Having just purchased apple TV and set it all up correctly I still can't connect - no AIRPLAY symbol ? p

    I bought my Macbook Pro OS X Lion 10.7.5 in january 2012 brand new from my local apple store and i am sure they said that it would run AIRPLAY. Having just purchased apple TV and set it all up correctly I still can't connect - no AIRPLAY symbol ? pls help

    Mark
    You need OS X 10.8 mountain lion, mirror is a feature of that OS and you need to buy it from the app store, OS X 10.7.5 does not do it.
    If you don't want to change visit www.airparrot.com a third party app that can do it.
    Jules

  • Add new Item to Drag and Relate Menu

    Hi Dear;
    1- how can i add a new item to drag and relate menu?
    2- how can i link it to an sql statement?
    exp: user table (OUSR)
    best regards;

    Dany,
    Currently that functionality is not available using the SDK.  Apologies.
    Eddy

  • Set External Field Value by Workflow

    Is there any way to Set External Field Value by SPD 2013 workflow?

    Hi j.kiani,
    According to your description, my understanding is that you want to update an external column in a list by SharePoint workflow.
    I did a test:
    Create a list with an external column
    Create a workflow , and add ‘Set Field in Current Item’ action, select the field is the external column, set the value to a value from the External Content type data source
    Publish the workflow and start it on an item
    The external column was changed to the value that I set in workflow. However, when I refreshed the external column by clicking the ‘sync’ flag, the data was changed to the old value.
    I used ‘Update ListItem’ action, the result was same
    It seems that there is not an OOB way to change external column with SharePoint workflow. You can change the external column by SharePoint web OOB way (Editing item) .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • I received a new IMac for Christmas and set up a new .me account and I'm using this on my IMac and IPhone4S.  how do I transfer my music from my old Windows iTunes account to my new Mac account?

    I received a new IMac for Christmas and set up a new .me account and I'm using this on my IMac and IPhone4S.  how do I transfer my music from my old Windows iTunes account to my new Mac account?

    You can red this article about transfering your tunes - http://www.myfirstmac.com/index.php/mac/articles/how-do-i-move-my-itunes-library -from-pc-to-mac-and-keep-my-settings-intact
    MJ

  • The recent upgrade for i-tunes prevents me from adding and using the Field, "Show". How can I add this field in i-tunes?

    The recent upgrade for i-tunes prevents me from adding and using the Field, "Show". How can I add this field in i-tunes?

    Hold down shift as you right-click > Get Info to get the old style dialog box.
    tt2

  • I have a problem with IDVD when I have completed a movie and set it up with menus etc I cannot operate the burn button so I cannot make a DVD.

    I have a problem with IDVD when I have completed a movie and set it up with menus etc I cannot operate the burn button so I cannot make a DVD.

    Hi
    Can You
    Go up to File Menu in iDVD - and here down to
    Save as a DiskImage
    If this works - You can burn Your DVD in another way via Disk Util tool
    Yours Bengt W

  • When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    Taken at face value, you're having trouble with a QuickTime program file there.
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "QuickTime" and then click "Repair".
    Does the repair go through okay? If so, are you able to launch iTunes and/or Safari now?

  • Serena Dimensions plugin can not find resource when syncronizing new item

    We use
    Serena Dimensions 2009R03
    Oracle JDeveloper 11.1.1.3.0
    Serena Dimensions extension 11.1.1.3.37.56.60
    We have managed to link an application to a Dimensions project, and syncronizing files that exisit in the repository works fine, but when adding new files to the repository, JDev crashes with an exeption:
    Performing action Add...[ from oracle.ide.navigator.ProjectNavigatorWindow ]
    Invoking command: [ from oracle.ide.navigator.ProjectNavigatorWindow ]
    java.util.MissingResourceException: Can't find resource for bundle oracle.jdevimpl.vcs.dimensions.res.Resource, key Failed to {0} file {1}
    j.util.ResourceBundle.getObject(ResourceBundle.java:384)
    j.util.ResourceBundle.getObject(ResourceBundle.java:381)
    j.util.ResourceBundle.getString(ResourceBundle.java:344)
    o.ji.vcs.dimensions.res.Resource.get(Resource.java:23)
    o.ji.vcs.dimensions.res.Resource.format(Resource.java:31)
    o.ji.vcs.dimensions.session.DMVersionOperation.convertToDMException(DMVersionOperation.java:98)
    o.ji.vcs.dimensions.session.DMVersionOperation.convertToDMException(DMVersionOperation.java:73)
    o.ji.vcs.dimensions.session.DMAdd.performOperation(DMAdd.java:121)
    o.ji.vcs.dimensions.op.DMAddOperation$1.doInvocation(DMAddOperation.java:113)
    o.j.vcs.spi.VCSDirectoryInvokable.runInvokableImpl(VCSDirectoryInvokable.java:199)
    o.j.vcs.spi.VCSDirectoryInvokable.runInvokable(VCSDirectoryInvokable.java:117)
    o.ji.vcs.dimensions.op.DMAbstractOperation.invokeCommandImpl(DMAbstractOperation.java:141)
    o.ji.vcs.dimensions.op.DMAbstractOperation$1.doCommitOperation(DMAbstractOperation.java:102)
    o.j.vcs.spi.VCSDialogCommitter$1.run(VCSDialogCommitter.java:82)
    The item is not created.
    It makes no difference if subversion i active at the same time or not.
    Syncronizing with the Dimensions client or from a file explorer works fine.
    I have tried to reinstall both jdev, Dimensions client and the extension with the same result.
    This makes the extension pretty useless.
    /Kim

    Hi,
    1. Disabling auto checkout
    go to menu Tools -> Preferences -> Versioning -> Dimensions -> General
    this is the GUI approach to manipulating the preferences xml file that you have found. You should never need to amend this file manually
    1.c/2 We have an ER to provide a way to work on a file locally/writeable. It is not possible in this version. You could use the file system to set the file to writeable, but it is not supported
    3.a the Help files are the only documentation that we provide. It is not expected to be a full tutorial on Dimensions, but to support using the JDEV UI to interact with Diremnsions.
    What do you feel is missing from help?
    I have noticed that the Tools - Preferences for Dimensions are not documented in help and I will get a bug raised for that.
    b. the lock icon does, indeed, mean logged out. If you hover the mouse over the file in question the tool tip gives the meaning of the icon.
    ii. I don't recognise this second icon. Can you reproduce it and hover over the file - let me know what it is, I will get the icons updated in Help
    rgds
    Susan
    susanduncan.blogspot.com

  • HT1399 problem with playlist sync of  ipod nano 3rd gen will sync new pieces of music but it won't sync a new playlist I added and it has "lost" one I had before. Any ideas why?

    Since I got the last update of itunes, my 3rd gen will sync new pieces of music but it won't sync a new playlist I created and it has "lost" one I had before. Any ideas why and what I can do to cure the problem?

    if you have done restores then possibly it is a firmware issue... i would take it to the apple store if you can to get it looked at...

Maybe you are looking for