I am attemption what seems like a simple task
I have created an even to notify a user if a Customer Order Line is saved in planned status. I want the notify statement to include the credit limit for the customer affected. The event triggers against the SLCoitems IDO, but the Credit Limit value resides on SLCustomers. I am attempting to use the Load IDO Collection event action to capture the credit limit from customers into a variable vCreditLimit and print it in the notify e-mail, but it always returns null.
Where have I gone astray? The event fires and sends the e-mail, but the credit limit is NULL in the output, and I know that is incorrect.
Handler Description |
Sequence |
Access As |
Applies To Initiators |
Applies To Objects |
Chronology |
Keep With |
Can Override |
Ignore Failure |
Synchronous |
Transactional |
Suspend |
Active |
Obsolete |
Initial State |
Initial Action |
Applies To Sites |
Event Name |
Purpose |
Triggering Property |
Method To Call |
_ATRO_Notify CO Line in Planned Status |
18 |
|
Form.CustomerOrderLines |
SLCoitems |
|
1 |
0 |
1 |
0 |
0 |
1 |
0 |
|
|
|
IdoPostItemInsert |
|
|
|
Action Sequence |
Action Type |
Action Description |
Parameters |
10 |
Finish |
|
CONDITION(P("Stat") <> "P")RESULT("Order not saved in planned status") |
15 |
Load IDO Collection |
Get Credit Limit from Customers |
IDO("SLCustomers")PROPERTIES("CreditLimit")DISTINCT(FALSE)FILTER(SUBSTITUTE("CustNum = {0}", FP("CoCustNum")))SET(R(vCreditLimit) = RESULT) |
20 |
Notify |
|
TO("davshe")SUBJECT("TEST")BODY(SUBSTITUTE("Credit Limit: {0}", FV(VCreditLimit), ""))SAVEMESSAGE(FALSE)PAYLOADACCESS(HIDDEN) |