Who Me Too'd this topic

Who Me Too'd this topic

Mark-sai Respected Contributor.
Respected Contributor.
669 views

.Net SDK check if the custom field definition exist in RM

I am using  below code to assign custom field value using .Net SDK

FieldDefinition fdDef = new FieldDefinition(rmDB, fieldName);
UserFieldValue ufVal = new UserFieldValue(fieldValue);
rmRecord.SetFieldValue(fdDef, ufVal);

But before setting the value, i need to check if 'fieldName' exist within RM as it will throw error if it is not valid. How do I check if FieldDefination is valid?

0 Likes
Who Me Too'd this topic
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.