Skip to main content

Search

Use placeholder in Update list item action

Comments

4 comments

  • RosarioM

    Good afternoon Senad,

    Just to inform you that we read your question, we will need some time here.

    We return to you ASAP. Ok ?

    Thank you for your understanding

    Regards

    Rosario Matos

    0
  • Senad

    Good afternoon Rosario,

     

    no problem, it is okay, I will wait for your answer.

     

    Best Regards

    0
  • AndriiK

    Hi Senad,

     

    At the moment it is not possible to expression for list input in Update List Item action.

    But there are workaround: you can use Script Execute action for this.

    e.g:

    var itemId = 1;
    var siteUrl = [[URLPart]];
    var listTitle = 'MyList';
    var clientContext = new SP.ClientContext(siteUrl);
    var list = clientContext.get_web().get_lists().getByTitle(listTitle);
    var listItem = list.getItemById(itemId);
    listItem.set_item('Title', 'My Updated Title');
    listItem.update();
    clientContext.executeQueryAsync(function(){
      //Item Updated
    }, function(){
      //Error Happened
    });

     

    where [[URLPart]] should be full or relative url to the site where you want to update the list.

    0
  • Senad

    This solved my problem. Thank you.

    0

Please sign in to leave a comment.