# Set User Defined Field via In-Transaction BPM **Category:** [Epicor ERP 10](https://www.epiusers.help/c/e10/5) **Created:** 2016-10-11 22:24 UTC **Views:** 1922 **Replies:** 1 **URL:** https://www.epiusers.help/t/set-user-defined-field-via-in-transaction-bpm/35781 --- ## Post #1 by @DurangoBurke I created a new UD Field in the UserComp table and now I'm trying to reset the value within the CurPlant based on the value of my new SiteDefault_c UD Field. Is there some trick to using UD fields with In-Transaction BPM data directives? I'm able to select the field from the Set Field dialog box, but I get the following error --> 'UserCompTempRow' does not contain a definition for 'SiteDefault_c' and no extension method 'SiteDefault_c' accepting a first argument of type 'UserCompTemRow' could be found (are you missing a using directive or an assembly reference?) --- ## Post #2 by @Neil_Jones I got caught out on this one….try and use the context of the following as an example, foreach( var row in ttLaborDtl) { if(row.UDField(“Number01”) > 0) { row.UDField(“Character01”) = "xxx"; } } Regards, Neil --- **Canonical:** https://www.epiusers.help/t/set-user-defined-field-via-in-transaction-bpm/35781 **Original content:** https://www.epiusers.help/t/set-user-defined-field-via-in-transaction-bpm/35781