I am trying to compile the list of System Owned Fields and display it. I am seeing an error which states Object required: 'entityDefObj.IsSystemOwnedFieldDefName(...)'.
changedcount = 0
set sessionObj = GetSession
entityDefName = GetEntityDefName
set entityDefObj = sessionObj.GetEntityDef(entityDefName)
' Get a list of the fields in this record type...
fieldnames = GetFieldNames
' Loop through the fields, showing name, type, old/new value...
if IsArray(fieldnames) Then
i = LBound(fieldnames)
Do While i <= UBound(fieldnames)
set FieldType = entityDefObj.IsSystemOwnedFieldDefName(fieldnames(i)) **** ERROR HERE ****
If FieldType = false Then
M = fieldnames(i) & ", "
U = fieldnames(i) & ", "
i = i + 1
M = "System Fields" & M
I have no idea what is the cause and the way out of it. Any help?
This topic has been locked.
Pinned topic System Owned Fields Listing - IsSystemOwnedFieldDefName
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
pdubovitsky 100000N35Y376 Posts
Re: System Owned Fields Listing - IsSystemOwnedFieldDefName2013-02-04T11:33:20ZThis is the accepted answer. This is the accepted answer.IsSystemOwnedFieldDefName returns Boolean value, and it is not an object. You should not use "Set" there.
jnbharadhwaj 270005C4TE11 Posts
Re: System Owned Fields Listing - IsSystemOwnedFieldDefName2013-02-13T06:37:03ZThis is the accepted answer. This is the accepted answer.Thanks. That was the problem :-)