After trying for many hours, I just can't get it right ...
Here is the problem :
BO : OutgoingCall
Attr: FromPhone, ToPhone, CallDate, LinkCDR
External BO : CallDetails
Attr: uniqueid, channel, destination, userdata, timestamp
I've defined CallDetails with uniqueid as primary key.
The requirement:
Find the CallDetails record and write the uniqueid to the LinkCDR attribute.
The problem:
how to define the FIND action on the CallDetails ?
In a process, the following rule doesn't work:
FIND CallDetails where CallDetails.channel STARTSWITH OutgoingCall.FromPhone and CallDetails.destination=OutgoingCall.ToPhone and CallDetails.userdata=' '
As a test, I use an interactive query on CallDetails to check that I can find a unique record. For instance, if I use channel = SIP/103 and destination = 00123456789 and userdata = ' ' , the list shows only one record. And I can edit it without problem.
And the FIND action above will work if I put 'SIP/103' and '00123456789' instead of the OutgoingCall references. I've tried using '<<Outgoingcall.FromPhone>>',... but it doesn't work either.
Can someone help ?
Thanks.