Scripting
Global Variables in SmartConnect.com
The purpose of this post is to provide a thorough walk-through of Global Variables and how to use them when building a SmartConnect process. Table of Contents What are Global Variables? Default Values vs. Map Values Default Values Map Values System vs. User Defined Variables System Defined Variables Example User Defined Variables Example Global Variables…
[Read More]Tech Tuesday: Javascript Dates and Times into Dynamics 365
ScenarioWith a growing reliance on cloud applications in our day to day operations we can take advantage of some great features such as automatic updates, improved collaboration, and reduced pressure on internal IT teams. With these changes we must also make some compromises to use these apps. Gone are the days of having absolute control…
[Read More]SmartConnect – Zip File as Source
Using a Zip file as a SmartConnect Source By default, we can’t use a zip file within SmartConnect as a data source directly, however we can write a pre-map script to extract the contents of the zip file. This article is for the on-premise version of SmartConnect only and has only been verified with SmartConnect…
[Read More]Wrong Date in Dynamics CRM/D365 for Customer Engagement Data Source
If you have ever needed to pull a time field from Dynamics CRM, the chances are the time shown in SmartConnect does not match the value seen in the CRM web client. There is a reason for this discrepancy, and in this article we will discuss how to use a calculated column to convert the…
[Read More]Tech Tuesday: Using GETMAPXML/VAR to pass in parameters to a map and getting the data back
While we position SmartConnect as a tool where you don’t need to be a developer to create integrations, we have quite a few developers that want to take advantage of our interface but have all of the power to call a map whenever needed. In the example below we will explore using the GETMAPXML funtion…
[Read More]Running SmartConnect from PowerShell
Many people are choosing to do administration of common tasks using PowerShell and the SmartConnect customer base is no different. Below you will find a simple script that will allow you to run a SmartConnect map to any destination directly from PowerShell:###Start Script#Define Path to RunMapConsole.exe$RunMapConsolePath = “D:\Program Files (x86)\eOne Solutions\SmartConnect\eOne.SmartConnect.RunMapConsole.exe”#Specify the Map ID to…
[Read More]Sample Scripts
sample scripts for SmartConnectsample scripts for performing various data manipulations inside of SmartConnect.NOTE: Scripts are provided as is. Assistance with installation or modification of the scripts is available as a billable service from our professional services team.Following is a listing of what each script does:AccountSegments.txt – This scripts takes an unformatted account number and breaks…
[Read More]Tech Thursday : Query data in SmartConnect with .NET scripting
This article will show the basics of using a SmartConnect scripting to query additional data during an integration with the focus on the MSSQL ADO.NET Provider. With the capabilities of .NET in a SmartConnect calculated field or script task, almost any piece of data can be read or updated, if one of the Microsoft ADO.NET…
[Read More]Running a map and the progress instantly goes to done with no record count, no successes, and no errors.
Running a map results in the map instantly saying it’s done with no record count, no successes, and no failures This can be caused by adding a script namespace on one machine and not adding it to all of them. A way to test if this is the issue is to open a map, and…
[Read More]Scheduled map fails after adding an assembly to the SmartConnect script namespace.
SmartConnect has a feature that allows users to add scripting namespaces to enhance the scripting capabilities in any of the coding windows within SmartConnect. This feature is accessed by going to the Maintenance Tab and then selecting Script Name Spaces. When you add a script namespace and manually run the map, the assembly needs…
[Read More]