retrieveCampaign - Promotion Module Reference
This documentation provides a reference to the retrieveCampaign
method. This belongs to the Promotion Module.
This method retrieves a campaigns by its ID.
Example
A simple example that retrieves a promotion by its ID:
To specify relations that should be retrieved:
Parameters
id
stringRequiredThe ID of the campaigns.
config
FindConfig<CampaignDTO>The configurations determining how the campaign is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a campaign.
config
FindConfig<CampaignDTO>select
or relations
, accept the
attributes or relations associated with a campaign.Returns
The retrieved campaigns.
Was this section helpful?