Hi,

While installing a package from workspace console utility I am getting the below error, please help me to understand how to identify the location of error by tracing the sql error stack.

 

Please respond to this ! 

Many Thanks.

Like 0

Like

1 comments

Dear Akshit,

 

Unfortunately, it is impossible to determine the root cause of the issue using the provided stack trace. Please note that it is only possible to define that the issue happened due to the incorrect sql syntax.

 

In order to resolve the issue please check all sql-queries and esq calls that are located in the package.

 

Best regards,

Norton

Show all comments

Hi,

I am following this https://academy.creatio.com/documents/technic-sdk/7-16/how-add-custom-logic-existing-controls article to add custom logic.

below is my conf object for the diff array : 

I have followed the instruction as it is given in the article but when I save the schema and clear the cache, the record pages show a blank workspace. When I comment the above config object of diff array the records opens but I can't able to achieve the task.

 

Please Help me to figure the problem ! 

Many thanks,

Best 

 

Like 0

Like

1 comments

Dear Akshit, 

 

Could you please open web console when the issue occurs and send a screenshot of an error that occurs? 

 

Best regards, 

Dennis 

Show all comments

Hi,

I am following this article https://academy.creatio.com/documents/technic-sdk/7-16/adding-action-edit-page to add action to the edit page.

Below is my edit page code : 

I have found nothing wrong in my code and saved it but when I refresh the cache, records are opening with a blank workspace like below.

 

Please help me to figure out the problem! 

Many Thanks! 

Like 0

Like

3 comments

Dear Akshit, 

 

Could you please open web console and send a screenshot of an error that occurs? 

 

Best regards, 

Dennis 

Hi Dennis Hudson,

 

Yes sure !

 

 

 

Hi Akshit,

 

Could you please also send the schema name and all code in the schema in the text file? It looks like the issue may be in the different parts of the code. 

 

Best regards, 

Dennis 

Show all comments

Hi

 

One of the annoyances of the case modified date is that it does not get updated if someone was to send an email on the case. This is to allow us to have accurate vision of when the last activity was on each case, so we can confirm that cases are updated regularly i.e. at least in last 48 hours.

 

I understand that a Process could be created which will do the following:

  1. Trigger - Email sent related to a support case
  2. Update the Last Modified date time for the same time that email was sent

I am not sure what the Trigger signal should look like to achieve this function, so would be thankful for any guidance.

 

thanks

Mark

Like 0

Like

1 comments

Hello Mark,

 

For your goal you can use next trigger signal:

 

 

This start signal will be triggered by any email realted to the existing case (in our example it will work for incoming and ourgoing emails, but you can change it by selecting the needed value for Message type).

If you want to tigger new cases (which were just created by incoming emails) you need to choose 'Record added' option for "Which event should trigger the signal" fieild.

 

Best regards,

Roman

Show all comments

Hi,

I am calculating Sum of the "UsrAmountForTheMonth" column from several records but every time it returns 0.

I didn't understand why the same  is happening with Max and Count funtion as well.

Please help me with this.

Many thanks.

 

Like 0

Like

1 comments

Dear Akshit, 

 

Everything seems to be correct with the code itself. I tried a very similar code with the OOB tables and it returned correct result: 

public void Execute(UserConnection userConnection)
        {
            var result = "";
            var sel = new Select(userConnection)
                    .Column(Func.Sum("Order", "Amount")).As("OrderAmount")
                .From("Order")
                .Where("AccountId").IsEqual(new Select(userConnection)
                                                .Column("Id")
                                                .From("Account")
                                                .Where("Name").IsEqual(Column.Parameter("Accom (sample)")))
                                   .And("StatusId").IsNotEqual(new Select(userConnection)
                                                .Column("Id")
                                                .From("OrderStatus")
                                                .Where("Name").IsEqual(Column.Parameter("2. Confirmation")))
                 as Select;
            result = sel.ExecuteScalar<int>().ToString();
            Console.WriteLine(result);
        }

You get 0 most likely because no records match the filter. Please run this query in SQL (SQL executor if your instance is in the cloud) and check what result you get.  

 

Best regards, 

Dennis 

Show all comments

Is it possible to specify certain data requirements for case management transitions to be enabled/disabled on?

 

For example, say I wanted to only enable a case transition from 'Draft' to 'Published' when there's at least one file attachment record - would this be possible?

 

Thanks in advance.

Like 0

Like

3 comments

Hi Harvey, 



Unfortunately, it is not possible to implement such behavior using out-of-the-box functionality.



But it is possible to do it with the help of additional development

which will perform the page validation to check if here's a file attached.



Thank you!



 

Bohdan Zdor,

 

Do you have an example of how this might be done so that it integrates nicely with how Case Management works out of the box? i.e. disabling clicking on a subsequent step unless a certain data condition is true? The simplest way I can think to implement this would be to have validation on the save event, but this would still allow the user to click on the subsequent stage but just fail to save, which isn't a great user experience.

 

Thanks,

Harvey

Harvey Adcock,

 

Such integration is possible in theory, but we did not face such integration before. You can only operate with the information which is available on the Academy.



Thank you.

 

Show all comments

Hi,

I make a custom section called "Gamma" and I am following this https://academy.creatio.com/documents/technic-sdk/7-16/how-add-section-action-handling-selection-single-record article to add an action and implemented all the required methods in "Gamma" section schema. 

But when I saved it and clear the cache nothing appears on the section workspace.

Does it mean that we cannot add an action to the custom sections? If not then what could be the problem?

 

Many Thanks.

Like 0

Like

1 comments

Dear Akshit, 

 

For those steps, there is no difference if the section is custom or OOB. If you've made all steps of the instruction correctly please clear cache and cookies. If you still don't see the action please check that you've correctly added it in getSectionActions method and that you don't have any errors in the console. If you check that all steps were done correctly and after clearing cache you don't see the button please send your code for adding the action.

 

Best regards, 

Dennis  

Show all comments

Formerly, a detail was added to our Case section using the main Change object instead of a new custom object specifically designed to be a detail that shows the connection between a Case record and Change record. This legacy Change detail has been used a lot over the past few years to create new Change records, so you can see which Change record was created by the detail if you look at the individual Case record where the Change detail was used. The problem is I don't know if I can export all the Change records and be able to see which Case they are associated with. I want to set up a proper detail after I create a new custom "Change in Case" object that has lookup columns for each object. I would like to be able to import data to this new object from the old detail. Does anyone know how I can export data to show which changes were created from which cases? (I can't simply create a lookup for the detail's object, because again, the detail uses the main Change object....)

 

typo....*legacy*

 

Like 0

Like

4 comments

Hello,

 

The Detail column in the settings is set to Id that may not be correct in your case.

Try to change the Detail column value from "Id" to "CaseId" . That should help.

 

Let me know the resuts.

 

Regards,

Dean

Dean Parrett,

It does not look like that will work. CaseId is not a column on the Changes object.

 

I recognize this detail was set up wrong, I am not looking to fix it, I just want to know with the existing settings, is it possible to know which Change records were added on which Case record page?

 

Dear Mitch,

 

It seems like Changes object is not connected to the Case object. The Detail column field doesn't have Case in the drop down list since the Changes object doesn't have the column based on Case object. Most likely the same happens to Case object, it doesn't have any lookup field based Changes object. I might be wrong if the fields just have different titles. Try to look through the lookup field of both objects and see if there are any lookups based on Cases and Changes objects. If they do exist, you can try to build filter in the section to see if the case records that have some existing records in Changes.

 

Regards,

Dean

Dean Parrett,

Thanks Dean. I did find that there is a lookup column for Cases on the Changes object, however the column is blank for all records because the objects are not connected. I think I'm out of luck.

Show all comments

Hi,

From each selected record I have to update the "UsrAmountForTheMonth" column from "UsrDueAmount" using script task element.

 

var select = new Select(UserConnection)

                 .Column("Id")

                 .From("UsrBeta")

                .Where("UsrConfirmationId").IsNotEqual(new Select(UserConnection)

                                                             .Column("Id")

                                                             .From("UsrCorrect")

                                                             .Where("Name").IsEqual(Column.Parameter("Yes")))                                                               as Select; 

 

var up = (Update) new Update(UserConnection,"UsrBeta").Set("UsrAmountForTheMonth",new                                                                                                                                             Select(UserConnection)

                                                                                                           .Column("UsrDueAmount")

                                                                                                                 .From("UsrBeta")

                                                                                                          .Where("Id").IsEqual(select))

                                                               .Where("Id").In(select);

 

But this way I got the error: Subquery returned more than 1 value

 

Please help !

Many thanks.

Like 1

Like

5 comments

Try change .IsEqual() on  .in(select)

and change .IsNotEqual(   on   ..Not().in(select)

 

Or use CustomQuery for use sql code with creatio

 Smile samples

			var delete = new Delete(UserConnection)
				.From("PersonalAccountRegistration")
				.Where("Id").In(new Select(UserConnection)
					.Column("par","Id")
					.From("PersonalAccountRegistration").As("par")
					.LeftOuterJoin("VerificationCode").As("hvc")
					.On("hvc", "Id").IsEqual("par", "HashId")
					.LeftOuterJoin("VerificationCode").As("svc")
					.On("svc", "Id").IsEqual("par", "VerificationCodeId")
					.Where("hvc", "ExpiresOn").IsLess(Column.Const(nowDate))
					.Or("svc", "ExpiresOn").IsLess(Column.Const(nowDate))
				);
			delete.Execute();

 

Hi Grigoriy,

I make the changes as per your suggestion but still It shows the same error.

 

I think the problem is with this bolded select query inside Set method : 

var up = (Update) new Update(UserConnection,"UsrBeta").Set("UsrAmountForTheMonth", new                                                                                Select(UserConnection)

                                                                            .Column("UsrDueAmount")

                                                                            .From("UsrBeta")

                                                                            .Where("Id").In(select) 
                                                                                                     )

                                                                .Where("Id").In(select);

 

Beacause I have to update the value of "UsrAmountForTheMonth" column with the value of "UsrDueAmount" column for each selected record in the select query.

But the bolded subquery inside Set method returns the collection of "UsrDueAmount" values.

This is how my section looks like!

 

Please suggest any solution to the same.

Thanks.

                 

 

Akshit,

 

As I wrote above, for complex cases, try writing and debugging a sql query and calling it as in the example below

 

var sqlText=@"update ....";

var customQuery = new CustomQuery(UserConnection, sqlText);

var rowCount = customQuery.ExecuteScalar<int>();

 

or

 

                var selectQueryString =
                    @"update ""Lead"" set ""ScpTimer"" = QS.""ScpLifetimeDays"" - (CAST(NOW() AT TIME ZONE 'UTC' AS date) - CAST(LD.""ScpDateTransitionNewStatus"" AS date))
                    from ""Lead"" as LD
                    inner join ""QualifyStatus"" as QS on QS.""Id"" = LD.""QualifyStatusId""
                    where LD.""Id"" = ""Lead"".""Id"" and ""Lead"".""QualifyStatusId"" in  (
                    'd790a45d-03ff-4ddb-9dea-8087722c582c',
                    'ceb70b3c-985f-4867-ae7c-88f9dd710688',
                    '128c3718-771a-4d1e-9035-6fa135ca5f70',
                    '7a90900b-53b5-4598-92b3-0aee90626c56')";
                var selectQuery = new CustomQuery(userConnection, selectQueryString);
                selectQuery.Execute();



 

Hi Grigoriy,

 

This time it works Thank you very much for your constant support! 

 

Best Regards. 

Show all comments

Hi,

I am using a select class to build a query where I have to compare date column "Net due date" with the current month.

var currentMonth = DateTime.Now.Month;

var select = new Select(UserConnection)

            .Column("Id")

            .From("UsrBeta")

            .Where("UsrDate").IsEqual(Column.Parameter(currentMonth)) as Select;

But I am getting this error : Operand type clash: date is incompatible with int

Like 0

Like

3 comments

Try this

.....

.Where(Func.Month("UsrDate")) .IsEqual(Column.Parameter(currentMonth));

Hi Grigoriy,

Thank you very much! It works

 

 

Hi Grigoriy,

I have to sum up the values of Column("Score") of several records so for this what should I use in place of Func.Month() .

Can you provide the reference for This Func method? 

Many Thanks.

Show all comments