Scripting example in Jitterbit App Builder - URI
This example demonstrates how to validate a given URI such as a web site address or REST endpoint.
Table schema
Column | Data Type | Primary Key | Auto-generate | Nullable |
---|---|---|---|---|
Uri | NVARCHAR(250) | No | No | No |
Script
using System;
string uri = Row["Uri"].GetValueAsString();
if (!Uri.TryCreate(uri, UriKind.Absolute, out _))
{
Fail();
}