Skip to content
A replication of Agenty scripting library in C# to test and debug pre-processing and post-processing scripts locally
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Agenty.scripting-test Published to nuget Apr 25, 2019
Agenty.scripting
.gitattributes
.gitignore
Agenty.scripting.sln
LICENSE
README.md

README.md

Agenty.scripting

A replication of Agenty scripting library in C# to test and debug pre-processing and post-processing scripts locally

Install-Package Agenty.scripting

Post-processing

// Set your api key
Agenty.ApiKey = "AGENTY_API_KEY";

// Get agent result as DataTable
var table = Agenty.Cloud.GetAgentResult("<AGENT_ID>");
            
// Write your code here to test

// Print the table for preview locally
table.Dump();

// Set the result back to agent
//table.SetAgentResult();

Replace example

// Set your api key
Agenty.ApiKey = "AGENTY_API_KEY";

// Get agent result as DataTable
var table = Agenty.Cloud.GetAgentResult("<AGENT_ID>");
            
// Write your code here to test
foreach(DataRow row in table.Rows)
{
	row["Field1"] = row["Field1"].ToString().Replace("abc", "xyz");
}

// Print the table for preview locally
table.Dump();

// Set the result back to agent
//table.SetAgentResult();
You can’t perform that action at this time.