e
q
u
e
s
t
a
d
e
m
o < back
API Reference: State Province
{TOC}
"State Province" API
API function
<.API.NET: function:
HushHush.MaskingLogic.SSRS.Mask.StateProvincesRandom(string xxxxx(xxx,xxx,xxx)>data)
Expected input
<.expectedData: input:Valid dataUSA type,state rule,or sample>territory name or code or Valid Canadian Province (based on ISO 3166-1)
Expected output
<.expectedGeneric output:USA dataor type,Canadian rule,state/province sample>or USA territory name (format depends on input, based on ISO 3166-1) (nvarchar(MAX))
Error handling
<.errorReturns handling>an empty string when passing empty or NULL value.
Fails on invalid state/province name or code
Example
<.example>.NET:
In .net
In SSRS
HushHush.MaskingLogic.SSRS.Mask.StateProvincesRandom(“Texas”)