Время создания
Filters

Dear Creatio team,

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.

how to use it in the ML recommendation model ?


Best regards
Patrice

Like 0

Like

0 comments
Show all comments

Hi,

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: Protected
 
		protected override bool 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
    {
        throw new Exception("No results returned from geocoding API.");
    }
 
}
 
			return true;
		}
 
		#endregion
 
		#region Methods: Public
 
		public override bool CompleteExecuting(params object[] parameters) {
			return base.CompleteExecuting(parameters);
		}
 
		public override void CancelExecuting(params object[] parameters) {
			base.CancelExecuting(parameters);
		}
 
		public override string GetExecutionData() {
			return string.Empty;
		}
 
		public override ProcessElementNotification GetNotificationData() {
			return base.GetNotificationData();
		}
 
		#endregion
 
	}
 
	#endregion
 
}

The package alraedy has the compile into a separate assembly unchecked.

Thanks in advanced,

Chani

Like 0

Like

0 comments
Show all comments

Hi,
 

Using the OOTB autoresponder but the autoresponder is not coming though. 

Any idea why this is happening? 

Like 0

Like

0 comments
Show all comments

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.

Like 0

Like

0 comments
Show all comments

How I can set new version of DCM for all existing records (Lead) automatically

 

New version is v2

 

We have 13000 records, so changing manually will take time

 

Thanks

Leo

Like 2

Like

1 comments

Hello,

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.

Show all comments