Hello im trying to fix an error in C4C with Sap cloud application
A partner is receiving emails when a ticket is created in C4C services, the email is supposed to contain the last info introduced in the Add Note option. This functionality was created by someone else and this is the code they created but everything seems to be alright:
var g = this.TextCollection.ToRoot.TextCollection.Text.GetLast();
this.Description2 = g.TextContent.Text.content;
It was a simple update i think and i don't know what could be the issue or what to look for since i don't know much about Sap cloud app or ABSL
My partner keeps getting the first information introduced instead of the last one. Could anyone help me?
The information he is supposed to get is the one that says 5 but he keeps getting the Note 1 wich is the first one created