Script task not saving in BP, yet works in different environment
Hello,
We have a script task in a BP in an on-prem environment we are trying to save. We encounter the following error message when saving the BP:
Using the following code in the script task:
var payload = "{ \"userId\": \"" + UserConnection.CurrentUser.ContactId + "\" }";
Terrasoft.Configuration.MsgChannelUtilities.PostMessageToAll("LeadPageV2", payload);
return true;
However using the same BP with the same contents in our previous environment it saves just fine, no issue with Terrasoft.Configuration. Worth noting is that the BP was exported to the second environment (where we get the error message
) using the .md-file and imported in Configuration. If that has any bearing on the situation. I checked …. Terrasoft.WebApp\Terrasoft.Configuration\bin-folder in both on prem environments and in both I find Terrasoft.Configuration.dll.
Like
Hello,
It seems that you have the following using in the process methods:
Terrasoft.configuration
Since I receive the same error locally when doing it:
Please change it to Terrasoft.Configuration since this is case sensetive.
Oleg Drobina,
Hello and thank you for the response. It seems to not be the issue as saving it using upper case on Configuration gives me the same error. This is regardless if I apply a Using under Methods-tab or not for Terrasoft.Configuration.