# orderrow.campaignID is GUID.Empty even when there is a valid active campaign for the product

**URL:** <https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775>\
**Category:** Questions\
**Created:** [November 18, 2020, 9:55am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775 "2020-11-18T09:55:55Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [November 18, 2020, 9:55am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/1 "2020-11-18T09:55:55Z")

</div>

orderrow.campaignID is GUID.Empty even when there is a valid campaign for the product.

Litium version: 5

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [November 19, 2020, 3:24pm UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/2 "2020-11-19T15:24:33Z")

</div>

What’s the campaign type?

If it’s applied on the order level (like buy X for Y, buy Z get discount on the cheapest), the campaign is added as an OrderDiscount on the Order.

---

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [November 20, 2020, 3:45am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/3 "2020-11-20T03:45:20Z")

</div>

It is a campaign on product. “Sänk produktens pris med procent”

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [November 20, 2020, 9:01am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/4 "2020-11-20T09:01:22Z")

</div>

With the information given it’s hard to say what’s happening, can you please provide steps to reproduce?

---

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [November 23, 2020, 11:39am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/5 "2020-11-23T11:39:56Z")

</div>

I hope when there is an active campaign for a product, orderRow.CampaignID would be set to the campaign ID. In our case it is always GUID.Empty

---

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [December 8, 2020, 6:42am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/6 "2020-12-08T06:42:44Z")

</div>

this is how the campaign looks in the back office

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/bf7e8e2536d29322f681aaf1985fc54a31cbeb2c.png)

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [December 8, 2020, 6:24pm UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/7 "2020-12-08T18:24:28Z")

</div>

I’m unable to reproduce this. Using a similar discount, the campaign id is there for the order rows on the order carrier. If I fetch the order, the Campaign is there on the order row.

Could you please share some code for when you’re retrieving the order and it’s Guid.Empty?

---

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [December 11, 2020, 7:16am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/8 "2020-12-11T07:16:10Z")

</div>

it is inside the ShoppingCartViewModelBuilder, please find the screenshot below

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/a28688c217e832234b7c7b9a07be921fdea7c3ea.png)

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [December 11, 2020, 8:46am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/9 "2020-12-11T08:46:49Z")

</div>

Debugging the same lines works just fine for me.

Are there any tiered prices on the product you’re using?  
Are there any other campaigns that are applied that can’t be combined with this one?

---

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [December 11, 2020, 1:04pm UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/10 "2020-12-11T13:04:56Z")

</div>

I think it is not specific to any products, but specific to website.  
I have set the campaign to be used with all other campaigns

---

<div class="post-metadata">

**Author:** ![gokul.gopi](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@gokul.gopi](https://forum.litium.com/u/gokul.gopi)\
**Post date:** [December 23, 2020, 2:00pm UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/11 "2020-12-23T14:00:14Z")

</div>

How should we activate campaign prices if we have tier price for the product

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [December 28, 2020, 8:49am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/12 "2020-12-28T08:49:39Z")

</div>

The tier price restrictions are built into the actions themselves, so you’d either have to create custom actions or use a different approach with price lists to facilitate the campaign instead.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [January 25, 2021, 8:49am UTC](https://forum.litium.com/t/orderrow-campaignid-is-guid-empty-even-when-there-is-a-valid-active-campaign-for-the-product/1775/13 "2021-01-25T08:49:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
