We have a weird error compiling a script:
I do not see how these error correspond to the source (in the next image).
Process combines a collection to a HTML table to be sent via email:
Like
AccountId and StatusId are Guids, not strings. Try using this instead:
item.TryGetValue<Guid>("Account", out Guid AccountId);
Do the same for Status.
As a side note, it would likely be easier to just retrieve the data using an ESQ rather than using the collection returned by the read data element.
Ryan
Ryan Farley,
In a Creatio business process, if I select a lookup column in a Read data element, does it automatically create an "<LookupName>Id" field in the Script Task result?
// i suppose FunctionalAreaId exists even if i did not create it
item.TryGetValue<Guid>("FunctionalAreaId", out var areaId)
OR
// FunctionalAreaId is not created explicity and i should use my lookup column
item.TryGetValue<string>("FunctionalArea", out var areaId) // i suppose FunctionalAreaId exists