Hi Everybody,
What i want to do is update a fields value with another value , which is entered on creation of the record.
Im getting no errors which is annoying but im also thinking that i cant get the value of the field im trying to copy because it has not been saved to the database.
Any Ideas?
switch (context.MessageName)
{
case "Create":
{
switch (context.Stage)
{
case 20: // Pre-Operation
{
if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
{
Entity createEntity = (Entity)context.InputParameters["Target"];
//Entity postMeImage = (Entity)context.PostEntityImages["postImage"];
string postGroup = string.Empty;
postGroup = ((EntityReference)createEntity.Attributes["codec_primaryprofessionalgroup"]).Name;
createEntity["codec_professionalgroups"] = postGroup;
*This post is locked for comments