Is it possible to update reference attribute using Copy Value activity

Dec 5, 2014 at 10:01 AM
Edited Dec 5, 2014 at 10:24 AM

Would it be possible to use something like this in the Copy Values workflow:
(this one doesn't work and return an error Microsoft.ResourceManagement.WorkflowDataExchangeException: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.)
But maybe I'm doing something wrongly or this kind of update is not supported.


Basically what I'm trying to achieve is to update reference attribute Location on person basing on a LocationCode string attribute on Person.

Any suggestions on how to achieve that ?

UPDATE: Actually I just found that Lookup value activity may be more suitable,however probably still not designed to update reference attributes ?

UPDATE2: I managed to to this. This is the answer if someone would look for later on:
Lookup Value activity
XPath Filter: /Location[LocationCode='[//Target/LocationCode]']
Attribute Name: ObjectID
Destination: [//Target/Location]

/Location is a custom object, //Target/Location is a reference type attribute, //Target/LocationCode is a string attribute.

Marked as answer by ebsk on 12/5/2014 at 3:24 AM