Use placeholder in Update list item action
Good day,
I am trying to update Lists on different site collections which address would be calculated by a column.
I would use it like this:

this is currently not working because it accepts only direct input for the relative address.
Is there a way to accomplish this?
Thank you in advance
-
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 -
Good afternoon Rosario,
no problem, it is okay, I will wait for your answer.
Best Regards
0 -
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 -
This solved my problem. Thank you.
0
Please sign in to leave a comment.
Comments
4 comments