Dear Krish, I'm doing great!
Thanks for asking!
To specify which loyalty program will be used, you have to assign the membershipid to the flat file.
The structure of a membership is BP->Member->Membership->Loyalty Program
I suggest you to assign the memberid too.
You undestand is right, you have to assign the membership ID.
To ensure that the loyalty rules will work fine, you have to assign the values in the member activity to attend the conditions that you have maintained in your reward rules, for example:
You create a condition in Reward Rule:
If Category eq 'Accrual' and
activitytype = 'POS_ORDER' and
amount > 0.
Execute action to accrual points.
endif.
In this example, you will have to maintain the flat file with category, activitytype and amount + membershipid and member. The LSMW Standard will create the member activities and when the processing engine runs the action is executed when the conditions are attended in the member activity.
If you want to assign points by product you have to follow the same logic.
I advice you to revise this flat file, because, it's not a good ideia to find the membership id by the customer's name, is there a chance to change it and maybe provide the membership id or other identification code?
let me know if I can support you.
With my best regards,
Caíque