Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleschema.xml (document object types)
collapsetrue
...
    <typeDocumentDefinition>
        <id>appSot:document</id>
        <baseId>system:document</baseId>
        <contentStreamAllowed>allowed</contentStreamAllowed>
        <propertyReference>appSot:DateOfReceipt</propertyReference>
    </typeDocumentDefinition>
...

...

Code Block
languagexml
titleschema.xml (secondary object types)collapsetrue
...   
    <typeSecondaryDefinition>
        <id>appSot:INV</id>
        <baseId>system:secondary</baseId>
        <propertyReference>appSot:invoiceNo</propertyReference>
    </typeSecondaryDefinition>

    <typeSecondaryDefinition>
        <id>appSot:DEL</id>
        <baseId>system:secondary</baseId>
        <propertyReference>appSot:deliverySlipNo</propertyReference>
    </typeSecondaryDefinition>

    <typeSecondaryDefinition>
        <id>appSot:SUP</id>
        <baseId>system:secondary</baseId>
        <propertyReference>appSot:name</propertyReference>
        <propertyReference>appSot:address</propertyReference>
        <propertyReference>appSot:phone</propertyReference>
    </typeSecondaryDefinition>
...

...

Code Block
languagexml
titleschema.xml (add reference)collapsetrue
...
    <typeDocumentDefinition>
        <id>appSot:document</id>
        <baseId>system:document</baseId>
        <contentStreamAllowed>allowed</contentStreamAllowed>
        <secondaryObjectTypeId static="false">appSot:INV</secondaryObjectTypeId>
        <secondaryObjectTypeId static="false">appSot:DEL</secondaryObjectTypeId>
        <secondaryObjectTypeId static="false">appSot:SUP</secondaryObjectTypeId>
    </typeDocumentDefinition>
...

...

Code Block
titlemetadata.json (import)collapsetrue
{
	"objects": [{
		"properties": {
			"system:objectTypeId": {
				"value": "appSot:document"
			}
            "appSot:DateOfReceipt": {
                "value": "2020-10-07"
            }
		}
	}]
}

...

Code Block
titlemetadata.json (add single)collapsetrue
{
	"objects": [{
		"properties": {
			"system:secondaryObjecttypeIds": {
				"add": "INV"
			},
			"appSot:invoiceNo": {
				"value": "K0815-2020-1894834"
			}
		}
	}]
}

...

Code Block
titlemetadata.json (add multiple)collapsetrue
{
	"objects": [{
		"properties": {
			"system:secondaryObjecttypeIds": {
				"value": ["INV","SUP"]
			},
			"appSot:invoiceNo": {
				"value": "K0815-2020-1894834"
			},
			"appSot:name": {
				"value": "Supplier Smith"
			},
			"appSot:address": {
				"value": "7 Main Street, London"
			},
			"appSot:phone": {
				"value": "004420834029390"
			}
		}
	}]
}

...

Code Block
titlemetadata.json (import multiple)collapsetrue
{
	"objects": [{
		"properties": {
			"system:objectTypeId": {
				"value": "appSot:document"
			}
            "system:secondaryObjectTypeIds": {
                "value": ["INV","SUP"]
            }
            "appSot:DateOfReceipt": {
                "value": "2020-10-07"
            }
		}
	}]
}

...

Code Block
titlemetadata.json (remove)collapsetrue
{
	"objects": [{
		"properties": {
			"system:secondaryobjecttypeids": {
				"remove": "INV"
			}
		}
	}]
}

...