how to retireve case number from case table

SyydQ
Tera Contributor

Hi,

 

I want to capture newly generated case number from sn_customerservice_case table in ATF after an email inbound action. how should i do that? is it possible to store the value to use it in a different step later.

 

Thanks in advance for your help.

 

 

8 REPLIES 8

Kieran Anson
Kilo Patron

Hi,

Are you using the "Generate Inbound Email" action to create your email? If so, the output of that action is the email record. 

 

You can then use that to perform a server lookup to find the record and check it's processed. The resulting record is saved in the target field of the email record

@Kieran Anson 

 

yes i used "Generate Inbound Email" and i can see there is a record in CASE table when i did a record query by short description. i want to capture the Number for the case and used it later test steps. is it at all possible?

Hi,

If you're doing a record query, you already have access to the number field as part of that record query

@Kieran Anson 

Yes but i am not trying to validate a particular case number at this point. I am trying to capture the case number [as an output] generated by inbound action so that i can use it in a later step.