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.
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.
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.
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.
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:
Trigger - Email sent related to a support case
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.
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.
Everything seems to be correct with the code itself. I tried a very similar code with the OOB tables and it returned correct result:
publicvoid Execute(UserConnection userConnection){var result ="";var sel =newSelect(userConnection).Column(Func.Sum("Order", "Amount")).As("OrderAmount").From("Order").Where("AccountId").IsEqual(newSelect(userConnection).Column("Id").From("Account").Where("Name").IsEqual(Column.Parameter("Accom (sample)"))).And("StatusId").IsNotEqual(newSelect(userConnection).Column("Id").From("OrderStatus").Where("Name").IsEqual(Column.Parameter("2. Confirmation")))asSelect;
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.
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?
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.
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.
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.
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....)
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?
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.
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.
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.
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();