Hi Team,
Please help to resolve this issue:
"Error in line 1 position 408. Element 'schemas.datacontract.org/.../System.Collections.Generic:value'
contains data from a type that maps to the name 'System:ValueTuple`2'.
The deserializer has no knowledge of any type that maps to this name.
Consider changing the implementation of the ResolveName method on your
DataContractResolver to return a non-null value for name 'ValueTuple`2' and namespace 'System'."
I tried to create Email attachment to Notes Entity using Plugin but am facing the above issue
in this Line
Entity entity = new Entity("annotation");
entity["subject"]=("subject", "Attachment from email: " + context.GetString(email, "subject", ""));
entity["isdocument"] =true;
entity["filename"] =current["filename"];
entity["documentbody"] = current["body"];
entity["objectid"] = entityRef; -- this is for Incident entity ID
//entity["ownerid"]= context.Retrieve(entityRef, columnNames, false).GetAttributeValue<EntityReference>("ownerid");
entity.Attributes.Add("ownerid", context.Retrieve(entityRef, columnNames, false).GetAttributeValue<EntityReference>("ownerid"));
context.Create(entity);
if any code issues or changes please let me know
.
Thanks
Saravanan S