Promotion Rule Id Input Property is not Passed to LOY Customer Action Business Service through Custom Attribute
(Doc ID 2880997.1)
Last updated on SEPTEMBER 01, 2024
Applies to:
Siebel Loyalty Engine - Version 22.2 and laterInformation in this document applies to any platform.
Symptoms
Promotion Rule Id Input Property is not passed to LOY Customer Action Business Service through Custom Attribute.
When a custom attribute is added to a promotion and this custom attribute is used as a Criteria & the custom method in the business service is called.
"Promotion Rule Id" parameter is not available in the Inputs parameter.
In Loyalty Object Manager Log, can observe that Promotion Rule Id not being passed.
The issue can be reproduced using below steps:
1. Login to Siebel Tools.
2. In the "LOY Customer Action Business Service" create a custom method such as SetPromoPoint to "get" Promotion Id
var id = Inputs.GetProperty("Transaction Id");
var membId = Inputs.GetProperty("Member Id");
var promoId = Inputs.GetProperty("Promotion Id");
var promoRuleId = Inputs.GetProperty("Promotion Rule Id");
3. Invoke Custom method SetPromoPoints under Service_PreInvokeMethod of LOY Customer Action Business Service.
4. Submit and deliver Workspace.
5. Login to Loyalty Application.
6. Go to Loyalty Programs.
7. Drilldown to any of the Loyalty Programs and inactivate this program if necessary.
8. Go to "Program Level Attributes"->"Custom Attributes"
9. Create a new Custom Attribute with these properties:
Name: "SetPromoPoints"
Service Name: "LOY Customer Action Business Service"
Method Name: "SetPromoPoints"
10. Activate this custom attribute and the program.
11. Then create a new test promotion.
12. Create a new rule for this promotion. (Apply To: Transaction)
13. Create Action of type Assign Points with value 10.
14. Activate the promotion.
15. Create a new transaction for this program and process this transaction.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |