i'm trying to improve the ML models results for product recommendations. For now, in many cases the predictions give no results or not so useful ones.
In the Account object, we have a custom field that contains a code to classify the company by business type. This field could be useful for the collaborative filtering.
I'm trying to create a user task for getting a Gps from address. I tried this in a business process and all was working, now I tried puting this in a user task and I keep getting the following error: The type or namespace name 'Linq' does not exist in the namespace 'Newtonsoft.Json' for this line: using Newtonsoft.Json.Linq; Attached it the full user task code.
namespace Terrasoft.Core.Process.Configuration{using Newtonsoft.Json;using Newtonsoft.Json.Linq;using System;using System.Collections.Generic;using System.Collections.ObjectModel;using System.Globalization;using Terrasoft.Common;using Terrasoft.Core;using Terrasoft.Core.Configuration;using Terrasoft.Core.DB;using Terrasoft.Core.Entities;using Terrasoft.Core.Process;using Terrasoft.UI.WebControls.Controls;using System.Net;using System.IO;#region Class: UsrGetGpsFromAddressUserTask/// <exclude/>public partial class UsrGetGpsFromAddressUserTask
{#region Methods: Protectedprotectedoverridebool InternalExecute(ProcessExecutingContext context){
string apiKey ="AIzaSyAxzbYu2BXF7bX0Y37H2ofAQmGfz9KNZJA";
string fullAddress = Get<string>("fullAddress");
string encodedAddress = Uri.EscapeDataString(fullAddress);
string url = $"https://maps.googleapis.com/maps/api/geocode/json?address={encodedAddress}&key={apiKey}";
var request = WebRequest.Create(url);using(var response = request.GetResponse())using(var stream = response.GetResponseStream())using(var reader =new StreamReader(stream)){
var json = reader.ReadToEnd();// Parse the entire JSON response as JObject
var jsonObj = JsonConvert.DeserializeObject<Newtonsoft.Json.Linq.JObject>(json);// Try to get the "results" array safely
var results = jsonObj["results"] as Newtonsoft.Json.Linq.JArray;if(results != null && results.Count>0){
var location = results[0]["geometry"]["location"];double lat = location.Value<double>("lat");double lng = location.Value<double>("lng");
Set<double>("lat", lat);
Set<double>("lng", lng);}else{thrownew Exception("No results returned from geocoding API.");}}returntrue;}#endregion#region Methods: Publicpublicoverridebool CompleteExecuting(params object[] parameters){return base.CompleteExecuting(parameters);}publicoverridevoid CancelExecuting(params object[] parameters){
base.CancelExecuting(parameters);}publicoverride string GetExecutionData(){return string.Empty;}publicoverride ProcessElementNotification GetNotificationData(){return base.GetNotificationData();}#endregion}#endregion}
The package alraedy has the compile into a separate assembly unchecked.
How to capture client side validation errors on Creatio formpages and move them to a table or if there is an existing table to read. For example, a user forgets to select the 'House type' and an error comes up. We want these errors logged somewhere.
At the moment, there is no option to automatically change the case version for all leads using standard system functionality.
We consulted with the R&D team, and there is currently no ready-made solution for this scenario. However, similar cases have already been registered, and your request has also been added to help raise the priority for implementation in future versions.
You can also try to implement the functionality with a business process. Unfortunately, we do not have examples of such implementation.