Accept the Attachment of Files and Forms
The GetMetadata response action defines if each specific table can accept attachments using the accepts-attachments attribute. It does not define generated forms; these can always be attached.
Attachment (upload) controls and generated forms can be attached to screens collecting for the global entity regardless of whether the table mapped for global output is defined as accepting attachments or not. Child entities which are mapped to tables defined as accepting attachments can have attachment controls.
In the example below, the 'Car Request' table accepts attachments.
<get-metadata-response xmlns="http://xmlns.oracle.com/policyautomation/hub/12.2.13/metadata/types">
<Table name="Vehicles" can-be-input="true" can-be-output="false" accepts-attachments="false">
<Link name="Cars" target="Car" cardinality="C_1M"/>
</Table>
<Table name="Car" can-be-input="false" can-be-output="false" accepts-attachments="false">
<Field name="Model" type="STRING" can-be-input="true" can-be-output="false" is-required="false"/>
<Field name="Price" type="DECIMAL" can-be-input="true" can-be-output="false" is-required="false"/>
<Field name="Color" type="STRING" can-be-input="true" can-be-output="false" is-required="false"/>
</Table>
<Table name="Car Request" can-be-input="false" can-be-output="true" accepts-attachments="true">
<Field name="Request ID" type="DECIMAL" can-be-input="true" can-be-output="false" is-required="true"/>
<Field name="Selected Model" type="STRING" can-be-input="false" can-be-output="true" is-required="true"/>
<Field name="Contact Name" type="STRING" can-be-input="false" can-be-output="true" is-required="true"/>
<Link name="Customer's Phone Numbers" target="Customer's Phone Number" cardinality="C_1M"/>
</Table>
<Table name="Customer's Phone Number" can-be-input="false" can-be-output="false" accepts-attachments="false">
<Field name="Phone Number" type="STRING" can-be-input="false" can-be-output="true" ="true" is-required="true"/>
<Field name="Is Preferred Number" type="BOOLEAN" can-be-input="false" can-be-output="true" is-required="true"/>
</Table>
</get-metadata-response>
This means instances of an entity which is mapped to this table are permitted to have upload controls placed on screens collecting instance information, or within corresponding entity collect containers.
Any attachments (uploaded by the user or as generated forms) will be within the attachments element of the Save request. For more information, see Receive a Request From Intelligent Advisor to Save Data.