Predefined Calculation: CXM - Reference of most recent case for user
This formula will return the reference of the most recent case associated with the signed in customer, for a specific case type.
The formula requires integration with Jadu CXM to be configured. This can be done under Settings > Integrations > Jadu CXM.
This formula requires 1 input to be passed through to it, the case type to match in CXM.
|A case reference||If the customer has at least one case of the specified type.|
Note: return values are case sensitive
The customer's CXM access token is obtained, as they are signed in.
CXM is queried using this token, to fetch all of the customer's cases of the specified type.
The reference of the first case is the result of the formula.