SharePoint · SharePoint 2013 · SharePoint Designer · Workflow · Workflow Manager 1.0

SharePoint 2013 – Update Related Items in SharePoint 2013 using SharePoint Designer Workflow


Today I wanted to update a list item’s related Items (I renamed the Related Items to Secured Comments in my list)  field.

I’m using the Update List Item action and then in the set this value followed the following format: [{“ItemId”:13,”WebId”:”b95aa3f5-5fc2-4df7-b690-7381971e8ab7″,”ListId”:”7fb76569-48d5-45a6-9224-116ee234c304″}]

Ok so that’s great but what about multiple related items.

The following simply works:

[{“ItemId”:13,”WebId”:”b95aa3f5-5fc2-4df7-b690-7381971e8ab7″,”ListId”:”7fb76569-48d5-45a6-9224-116ee234c304″},{“ItemId”:14,”WebId”:”b95aa3f5-5fc2-4df7-b690-7381971e8ab7″,”ListId”:”7fb76569-48d5-45a6-9224-116ee234c304″}]

So now all that needs to be done is replace the variable bits with workflow variable and all will work.

Advertisements

One thought on “SharePoint 2013 – Update Related Items in SharePoint 2013 using SharePoint Designer Workflow

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s