Macro rules 2

merav tg asked on April 11, 2016 16:45

Hey

I wish to write a Macro rule that check the order status, is this correct? is the macro rule correct?
{_is}(Contact.Orders.FieldsAsObjects.OrderStatusID == "{Status}")

status is a field i defined in the parameters that looks to the Order status selector

Recent Answers


Chetan Sharma answered on April 11, 2016 17:23

Hi Merav,

Could you please a few questions?

  1. What exactly is {Status} ?
  2. Are you planning to get value from some where and do a string comparison?

Thanks, CHetan

0 votesVote for this answer Mark as a Correct answer

Laura Frese answered on April 11, 2016 18:16 (last edited on December 10, 2019 02:30)

If its going into a repeater:

Contact.Orders.FieldsAsObjects.OrderStatusID = '{% QueryString.Status |(identity)GlobalAdministrator%}'

0 votesVote for this answer Mark as a Correct answer

merav tg answered on April 12, 2016 09:24

Hey,

As it didn't work the way I did it. I thought maybe to set the "{Status}" just as a INT field and manual enter the number of the order status ID.

To check my macro rule i tried to create a contact group and apply my rule- group of contacts that have order status new. but i see nothing :(

my user text is: current order status {_is} {Status} the condition is:

{_is}(Contact.Orders.FieldsAsObjects.OrderStatusID == "{Status}")

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.