Helper/Data.php
public function getAutomationIdByType($automationType, $storeId = 0)
    {
        $path = constant(EmailConfig::class . '::' . $automationType);

        $automationCampaignId = $this->scopeConfig->getValue(
            $path,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $storeId
        );

        return $automationCampaignId;
    }
public function getAutomationIdByType($automationType, $storeId = 0)
    {
        $path = constant(EmailConfig::class . '::' . $automationType);

        $automationCampaignId = $this->scopeConfig->getValue(
            $path,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $storeId
        );

        return $automationCampaignId;
    }
public function getAutomationIdByType ( $ automationType , $ storeId = 0 ) { $ path = constant ( EmailConfig :: class . '::' . $ automationType ) ; $ automationCampaignId = $ this -> scopeConfig -> getValue ( $ path , \ Magento \ Store \ Model \ ScopeInterface :: SCOPE_STORE , $ storeId ) ; return $ automationCampaignId ; }
Get the config id by the automation type.

@param string $automationType
@param int $storeId

@return string|boolean
Get the config id by the automation type .