Application Programming Interface forums

0 Subscribers

3 Topics

4842 Conversations

Area for questions and answers about SuperOffice API's.

push_pin lock

New CRMScript editor (again): Monaco

Hi all, We have been testing whether it is possible to replace Codemirror as our CRMScript editor with Monaco (the basis of VSCode). We have currently implemented this as a testable feature in our latest build, hoping that some of you will try it out and tell us what is not working :-) You can enable Monaco as your CRMScript editor by using the "rms.fcgi?action=debug" panel and tick the Monaco-checkbox. The setting is stored as a cookie in your browser and will only affect you in that particular browser, other users will not be affected. This setting is available in build "main_10.3.7_2024.05.23-01". Sverre
Sverre Hjelm
5
13
23 May 2024 | 08:04 AM
Topic:
Service and CRMScript Discussion

Last reply

Cust32284

UT

by Ummair Tahir
24 May 2024 | 11:28 AM
push_pin lock

Virtual fields for person address fields

Hi, We have a customer where the address fields of the main person of a ticket are shown in the ticket header like this: They have encountered a few times now that the wrong address is displayed here, it shows the address of a company with the same Primary ID as the person. This happens because there is no restriction on the atype_idx field of the address table added when you point to the address fields like this. Sadly there currently are no virtual fields on the person table (they are there for the contact table) to solve this. Could these be added? or is there another solution here? This wish has been asked before, but the bug id does not exist anymore. https://community.superoffice.com/en/technical/forums/api-forums/service-crmscript/display-address-for-person-in-view-person-screen/ https://community.superoffice.com/en/technical/forums/api-forums/service-crmscript/person-address-from-sm-shown-in-cs/  
David Hollegien
1
0
24 May 2024 | 09:42 AM
Topic:
Service and CRMScript Discussion
push_pin lock

Mailbox, run before message is saved trigger

Hi, I have a specific email from a customer that always should be merged with an existing request, this email have an PDF attachement. What would be the best way to merge this email? "Mailbox, run before message is saved trigger" seems not to handle attachements, should I then use run after message is saved trigger and merge requests? Would appriciate any suggestions how to do this. Thanks!
Johan Friberg
1
0
17 May 2024 | 07:01 AM
Topic:
Service and CRMScript Discussion
push_pin lock

New messages collapsed in ticket overview

I'm adding messages to tickets through the api, but I have noticed that all new messages are default collapsed in SO gui. Is there a way to get them to be expanded by default?     var agent = new TicketAgent(await GetConfig(), _client); var message = await agent.CreateDefaultTicketMessageEntityAsync(); message.Ticket.TicketId = ticketId; message.Body = messageBody; message.Type = TicketMessageType.Plain; message.Badge = BadgeType.Incoming; var messageEntity = await agent.SaveTicketMessageEntityWithNotifyAsync(message,true);

SG

Snorre Garmann
2
2
14 May 2024 | 07:26 AM
Topic:
Online development and web service API's

Last reply

Thanks. I think the confusion was caused by the fact that when new messages arrives on a ticket already opened and we click the status bar asking to reload, the new messages are shown as collapsed. If we instead click F5 the correct number of expanded messages are shown.

SG

by Snorre Garmann
14 May 2024 | 10:23 AM
push_pin lock

Reopen ticket through API

How do I reopen a ticket with status=Closed? It seems to ignore the state on TicketEntity. I would think the following should work, but the status on the ticket remains Closed     var ticket = await agent.GetTicketEntityAsync(ticketId); ticket.BaseStatus = TicketBaseStatus.Active; await agent.SaveTicketEntityAsync(ticket); var newTicket = await agent.GetTicketEntityAsync(ticketId); if(newTicket.BaseStatus != TicketBaseStatus.Active){ throw new Exception(":exploding_head:"); }

SG

Snorre Garmann
2
2
14 May 2024 | 06:27 AM
Topic:
Online development and web service API's

Last reply

I tried that first without success, but now I got it to work if setting both TicketStatusId and Status on TicketEntity.Status. Should I set both BaseStatus and Status?  

SG

by Snorre Garmann
14 May 2024 | 07:07 AM
push_pin lock

Internal error from CS engine

Hi, A online customer of us got upgraded to 10.3.5. last weekend, and since then they have been getting a fatal error from the CS engine. The error isn't catched by a try catch statement, it only shows up when tracing the script: OutOfRangeException: Index 4 out of range for string: "0.0" File: D:\Agent1\_work\2\s\Clients\CS\fh\String.cpp Line: 939 Date: Apr 30 2024 13:28:03 Func: class String __thiscall String::subStr(int,int,bool) const (Can't open the trace, it keeps spinning) The error occurs when opening a customer screen i the creation script. The creation script includes a seperate CRMSCript whichs load data to a struct from a document entity (especially it's custom fields). If I isolate the crmscript the creation script of the screen calls and executes it as a normal script, no error occurs... We arent calling the substring method in any of this code, so it seems we are hitting an underlying error?
David Hollegien
1
1
7 May 2024 | 02:04 PM
Topic:
Service and CRMScript Discussion

Last reply

Solved, app insights contains more details so with help from that (Thanks Margrethe 😁) we where able to pin out that ultimaltely this error is thrown due to an issue where we are calling subString.
by David Hollegien
7 May 2024 | 02:50 PM
push_pin lock

Superoffice Customer logIn in external app

Hi, We are transitioning from on-premises to the cloud. On our on-premises system, it is possible to log in as a customer from your external website. Is this also possible in the cloud solution?

HL

Henrik Larsen
2
3
24 Apr 2024 | 08:45 AM
Topic:
Online development and web service API's

Last reply

Hi Henrik, we show part of your tickets to us in the developer portal: https://docs.superoffice.com/en/developer-portal/create-app/message-center.html So, we should be able to solve this, contact the consultant which helps you migrating to CRM Online.
by Margrethe Romnes
3 May 2024 | 09:32 AM
push_pin lock

WebTools auto login not working due to download service being offline/unavailable

We are having an issue with webtools auto login (double click on the owl in the tray area), it doesnt work and the log file shows the following: Error    2024-04-30T09:02:31.15    SuperOffice.TrayApp.Server.TrayAppServer>Execute<TRequest, TResponse> SuperOffice.TrayApp.TrayApp2.GetAlarmsRequest SuperOffice.TrayApp.Server.TrayAppServer+OnExecute`2[SuperOffice.TrayApp.TrayApp2.GetAlarmsRequest,SuperOffice.TrayApp.TrayApp2.GetAlarmsResponse] MSSQL - 12 \\\ 1501235947 SuperOffice 10.3.3 NetServer 10.3 Release (Build: Release_OnSite_10.3.3_2024.04.17-01) 10.3.0.0 10.3.3.617 Release_OnSite_10.3.3_2024.04.17-01 Default ACRMWEB02 NetServer        TrayAppServer.Execute implementation failed SuperOffice.TrayApp.TrayApp2.GetAlarmsRequest DH (1993) - Authorized (Employee)Gebruikersniveau 0+:  MSSQL - 12 \\ACRMSQL10\SuperOffice_AllCRM (crm_AllCRM), Database serial #: 1501235947, Database Expiration Date: Friday, July 12, 2024 ACRMSQL10 SuperOffice_AllCRM 1501235947 SuperOffice 10.3.3 NetServer 10.3 Release (Build: Release_OnSite_10.3.3_2024.04.17-01) 10.3.0.0 10.3.3.617 Release_OnSite_10.3.3_2024.04.17-01 Default ACRMWEB02 NetServer Response status code does not indicate success: 502 (Bad Gateway).    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()    at SuperOffice.Util.HttpHelper.GetObjectFromHttpSyncWithContent[T](String url, HttpServiceJwtConfig config, RequestType requestType, HttpContent content)    at SuperOffice.DCF.Web.WebTools.WebToolsVersionService.GetVersionResponse(String clientVersion)    at SuperOffice.TrayApp.Server.TrayAppServer.ApplyVersioningRules[TResponse,TRequest](TResponse response, TRequest request)    at SuperOffice.TrayApp.Server.TrayAppServer.Execute[TRequest,TResponse](TRequest request, OnExecute`2 implementation) System.Net.Http           Exception Message:Response status code does not indicate success: 502 (Bad Gateway).       Exception Source:System.Net.Http       Exception Target:System.Net.Http.HttpResponseMessage EnsureSuccessStatusCode()          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()          at SuperOffice.Util.HttpHelper.GetObjectFromHttpSyncWithContent[T](String url, HttpServiceJwtConfig config, RequestType requestType, HttpContent content)          at SuperOffice.DCF.Web.WebTools.WebToolsVersionService.GetVersionResponse(String clientVersion)          at SuperOffice.TrayApp.Server.TrayAppServer.ApplyVersioningRules[TResponse,TRequest](TResponse response, TRequest request)          at SuperOffice.TrayApp.Server.TrayAppServer.Execute[TRequest,TResponse](TRequest request, OnExecute`2 implementation)   The download service is offline, so i guess that is the underyling issue (https://www3-superoffice-com.azurewebsites.net/DownloadService/) WebTools should still work when this isn't available... SuperOffice Version: SuperOffice CRM OnSite 10.3 Release_OnSite_10.3.3_2024.04.17-01 WebTools version:   
David Hollegien
1
1
30 Apr 2024 | 07:05 AM
Topic:
Online development and web service API's

Last reply

See https://status.superoffice.com/incidents/cnt699qd47sp
by David Hollegien
30 Apr 2024 | 08:29 AM
push_pin lock

RPA uipath

Wondering wheter it is is possible to use RPA application like uipath with superoffice or not.

K

Khan
2
1
29 Apr 2024 | 01:25 PM
Topic:
Application Programming Interface forums

Last reply

Hi Khan, It depends on what you are looking for. I haven't worked with UI Path explicitly, but many tools such as that might sometimes have an app store with existing connectors. As far as I know, there is no existing connector for this tool. Although, we have an existing Zapier-connector that might be possible to use for some events and workflows. You are also able to create an "custom app" that can communicate with SuperOffice Online's API, or build specific custom CRMScript-functions that could be called using a normal GET/POST-call, which could execute/return anything that CMRScript lets you do (within reason when it comes to data size). Zapier Info SuperOffice AppStore page https://appstore.superoffice.com/superoffice-as/zapier-integration Zapier AppStore page (scroll down on the page to see the different triggers available) https://zapier.com/apps/superofficecrm/integrations Custom CRMScript EndPoint https://docs.superoffice.com/en/automation/crmscript/tutorials/build-custom-rest-api-methods.html Custom App https://docs.superoffice.com/en/developer-portal/getting-started/index.html A "Custom App" is SuperOffice's way of packaging any kind of communication against our API.   Best Regards Marcus
by Marcus Svenningsson
29 Apr 2024 | 02:53 PM
push_pin lock

Navigate to custom URL

Hello All,   I was initially looking of setting up an URL on an error message so that users can click it and that will send them to a help document. But I was not able to make CRM script produce a clickable URL I found out about setNavigateTo, but unfortunatly, I cannot find a way to make it work with anything but Soprotocol. Is it possible to send the susers to a custom URL upon clicking Yes (for example)? Thank you!

AB

Andrei Berianu
2
4
24 Apr 2024 | 01:43 PM
Topic:
Service and CRMScript Discussion

Last reply

Hello David, Thank you!

AB

by Andrei Berianu
26 Apr 2024 | 10:39 AM