Issue with DependsOnOwnerProperty using Navigation Property in ResourceType (v6.3.2)

Hello,

I am trying to use the DependsOnOwnerProperty directive on a ResourceType. The documentation provides the following example:

XML

<ResourceType Identifier="AD_Entry_AdministrationUser" DisplayName_L1="AD User (Administration)" Policy="Default" TargetEntityType="AD_Entry" Category="Accounts" SourceEntityType="Directory_User" ApprovalWorkflowType="ManualAssignmentNotAllowed" DependsOnOwnerProperty="ServiceNow:identifier">

The value ServiceNow:identifier suggests that it is possible to use a Navigation property by specifying the property to be tested after the colon (:). However, when I attempt to do this, I encounter the following error:

The property ResourceType.DependsOnOwnerProperty with reference MainRecord:Login is not found.

Am I misunderstanding the documentation, is the documentation incorrect, or is this a known issue with version 6.3.2?

Thank you in advance for your help.

Hello Thierry,

I see that via the UI we are only able to select a scalar property and I think it has always been like this.
It does not seem like a specific bug in the 6.3.2 version.

Maybe they documented it that way to specify this:
You will need to create a scalar property (SnowID) on the user which will store the ServiceNow ID.
You will then need to select this property (SnowID) in the DependsOnOwnerProperty.

They should not have documented it like this within Context 7 because it does not compile like that. Every LLM reading this would assume the same thing and hallucinate.

Thanks for that feedback Kamil! I’m relaying it to our docs team!

Hello,

I can confirm that this a documentation issue (it needs to be clarified)

The DependsOnOwnerProperty option allows to select a property from the SourceObject (Directory_User in this case) .

It is not possible to get a value using a navigation.

As workaround, you can create a new Property “MainLogin” then use an ‘EntityPropertyExpression’ to compute its value from the navigation object.

 <EntityPropertyExpression Identifier="Directory_User_MainLogin" Binding="MainRecord.Login" EntityType="Directory_User" Property="MainLogin" />

Regards

Hazem