Hear from Salesforce leaders on how to create and deploy Agentforce agents.
Contact Us 1-800-596-4880

Storage Event Processors

The Storage processors allows you to manage temporary storage during your tests.

All storage is cleared as soon as the test ends.

Store operation

Stores the given data associated with the given key. If value not set, it defaults to the payload.

<munit-tools:store key="myKey">
    <munit-tools:value>#[person : { name: 'John', lastName: 'Smith' }]</munit-tools:value>
</munit-tools:store>
xml

Retrieve operation

Retrieves the data associated with the given key

<munit-tools:retrieve key="myKey"/>
xml

Remove operation

Removes and returns the data associated with the given key

<munit-tools:remove key="myKey"/>
xml

Clear stored data operation

Clears all stored data

<munit-tools:clear-stored-data/>
xml