Validate State Registration
Verb: validateIE
Available from: <Standard>
Validates a "Inscrição Estadual" number (Brazilian State Registration number for legal entities) belonging to a given state specified by the user.
Syntax
validateIE --registrationnumber(String) --state(BrazillianStates) (Boolean)=value
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--registrationnumber | Number | Required | Text | State registration number to be validated. |
--state | State | Required | BrazillianStates | State to which the state registration inserted in Number belongs:
Options are only for Brazilian states. |
Outputs
Script | Designer | AcceptedTypes | Description |
---|---|---|---|
value | Result | Boolean | Returns "True", if the number inserted in the Number parameter is valid; if not, returns "False". |
Example
A state registration number is inserted in Number belonging to the state of SP. The output parameter Result returns whether the number is valid or not.
defVar --name validationResult --type Boolean
validateIE --registrationnumber "062.954.008.004" --state "SP" validationResult=value
logMessage --message "${validationResult}" --type "Info"
// Result: True
Remarks
This command only works for Brazilian State Registration numbers.