How to get read data fields in script task when the type is "read the first"
I have a business process where I need to read the read element values in a script task.
When the read element is set to "read a collection of records" I'm using the following code:
var AccountsData = Get<ICompositeObjectList<ICompositeObject>>("ReadDataUserTask12.ResultCompositeObjectList");
var AccountData = AccountsData.First();
AccountData.TryGetValue<string>("Address", out AccountAddress);
What change do I need to do when the read element is set to "read the first record"?