This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Select Default Class using "Metadata Card Configuration"

Dear Community,

I have Object Type that have 2 Classes.
"First Class" is selected frequently by end users,
"Second Class" is almost never used.

Does anyone knows how can I make "First Class" to be selected by default on new object creation using "Metadata Card Configuration"?
So user does not need to select it every time.

I am not using "Templates" functionality, because creating template adds extra "Mouse Click" to select template when creating new object.
 

I have tried following behavior rules.: 

Using ID's

{
  "Properties": {
        "100":{
            "SetValue":{
              "Content": 8

            }
        }
    }
}


Using Alias:

{
  "Properties": {
        "100":{
            "SetValue":{
              "Content": "FirstClassAlias"

            }
        }
    }
}
 

Using Class GUID:

{
  "Properties": {
        "100":{
            "SetValue":{
              "Content": "2C86E061-4529-4AE0-8EA3-0D5E7C03E6C4"

            }
        }
    }
}
 

Using Class Property GUID and  Class GUID:

{
  "Properties": {
        "CEBF9AC9-C60C-4240-9F50-723DBF3A5CA7":{
            "SetValue":{
              "Content": "2C86E061-4529-4AE0-8EA3-0D5E7C03E6C4"

            }
        }
    }
}
 

In all my attempts Class is not selected by default on new object creation and there is no error message.

Server version: 11.2.4320.69
Client version: 11.2.4320.69
  • Former Member
    Former Member
    Hi,

    I'm bumping into a simular situation where I need to set a default class for 2 different groups, within the same vault.
    For a user, 2 classes are visible. Just like the example in the first post, one class is used rarely, so the other should be default to save a click).

    To make it more interesting, in the same vault we have another group of users that use and can see 2 other classes with also one default class.

    So, we need to be able to set a default class as rule behaviour, while as rule condition we should be able to set user or group since both groups will require a different default class. Is this possible?

    As alternative, can we set the default class client side by registry key?
  • I've used the following JSON to test this out, and I've not been able to find a way to set the class, so I don't think it's possible...
    Rule condition:
    {
    "ObjectType": 0
    }


    Rule behaviour:
    {
    "Properties": {
    "100": {
    "SetValue": "1D7EE32F-FAFC-4E7E-B173-F7D08E34A5DB",
    "AllowIndirect": true
    },
    "26": {
    "IsAdditional": true,
    "SetValue": "Test string",
    "AllowIndirect": true
    }
    }
    }


    I used the keywords property (26) alongside testing for the class property to make sure that it was working, and keywords does get populated. I have tried, like tigu, using the class ID, the class GUID, and the class alias. I think the problem lies in that it's expecting a value list item GUID, and this may not necessarily correspond with the class GUID. Unfortunately, though, when I try to export my class list to XML, the content is blank.

    I'll experiment with some VBScript to try and get hold of the VLI GUID for the class I'm trying to set as default, and get back to you.
  • Getting the selected item GUID yields the same result as exporting the class structure, so this is looking less possible by the minute. Maybe worth submitting a functionality request to be able to set the default class either through metadata card config or through the object type setup?
  • Former Member
    Former Member
    Thanks for trying (it's the fun part of the job isn't it? :))

    I'd like to see prpoerty 100/class configurable by meta data card config, or in worst case by registry key.
  • Former Member
    Former Member
    Did anyone manage to select Class as a default value?
  • I never got this to work. Selecting default class seems to be impossible.
  • I know it's an old topic, but I also think it would be great to change the default class either by using Metadata Card Configuration or in the properties of the Object Type Configuration ("Default Class" selection field would be fancy right?).