Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

concatenation of two string fields

$
0
0

Hi Community,

 i just try to concatenate two string fields into third field using plugin. But its not working with below code

if (entity.LogicalName == "new_tetest")

try
{
Entity test = new Entity("new_tetest");

String fname = test.GetAttributeValue<String>("new_firstname");
String lname = test.GetAttributeValue<String>("new_lastname");
string concat = fname + lname;
concat = String.Concat(fname, lname);
test["new_fullname"] = concat;
service.Create(test);


}
catch (FaultException<OrganizationServiceFault> ex)
{
throw new InvalidPluginExecutionException("invalidException", ex);
}


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>