8.4.5.2 Setup the Media Search for use within Flows

Role

Admin

License Plan/Edition

AMS


Challenge

I want to predefine filters of the Media Search by external systems or specific criteria or want to use the Media Search in a flow context.


Solution

To set this feature up you should first know what you would like to use this feature exactly for.

You can either set up a very easy flow with just 2 components if you enable your users to fill the filter fields.

When you want to add more logic you should read yourself a little bit into Salesforce Flows to make the setup easier for you.

Your flow setup could look similar to this:

Overview of configurations

By using the Lightning component Media Search there are a few input parameters to use:

Please take note that the following syntax (JSON) is required to set the filter values and that no blanks should be set.

Field

Explanation

Example

Field

Explanation

Example

Content Filter Values

Can be set by taking field values and parsing them into the correct format.

Please follow the JSON syntax. Starting object is the Ad Price object.

{ "ADvendio__Content__c":[ "a0u3N000000NAxFQAW" ], "ADvendio__Content__r.ADvendio__ParentContent__c":"a0u3N000000NAxFQAV"}

Filter Values

Can be set by taking field values and parsing them into the correct format.

Please follow the JSON syntax. Starting object is the Ad Price object.

{"ADvendio__Billing_Category__c":"CPD"}

Flow Actions

Enables the flow context of this component. The redirection from the basket will then continue in the flow.

{!$GlobalConstant.True}

Last Screen in Flow

If true, the component navigation will finish the flow. If false, the component redirects further in the flow.

{!$GlobalConstant.False}

Next Button Custom Label

Provide the text to show for the basket navigation button.

Redirect to Campaign Builder

Record Id

Can be set by creating an input text variable in the flow and taking the Media Campaign Id where the flow was started as a value.

a239Z000003GZRVQA4