Configure partial request account id {{=request_accountID.substring(1,5);}} in VSI response body fails
search cancel

Configure partial request account id {{=request_accountID.substring(1,5);}} in VSI response body fails

book

Article ID: 254667

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

How to configure only the last 4 characters of the accountID in the response.
The request_accountID has the full account ID and shows the actual accountID in the response by using {{request_accountID}} in the VSI response body.
But when using {{=request_accountID.substring(1,5);}} the response shows {{=request_accountID.substring(1,5);}}, not the required 4 characters.

Environment

Release : 10.7.2

Resolution

Add the toString method to the response: 
{{=request_accountID.tostring().substring(1,5);}}