Application Programming Interface forums

0 Aanmeldingen

3 Onderwerpen

4833 Gesprekken

Area for questions and answers about SuperOffice API's.

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!

A

andrei.berianu@azets.com1
1
0
8 u, 39 m geleden | 01:43 p.m.
Onderwerp:
Service and CRMScript Discussion
push_pin lock

Navigate to customer 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!

A

andrei.berianu@azets.com1
0
0
8 u, 40 m geleden | 01:42 p.m.
Onderwerp:
Service and CRMScript Discussion
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
2
13 u, 37 m geleden | 08:45 a.m.
Onderwerp:
Online development and web service API's

Laatste antwoord

Hi David We have a "Custom" customer website where our customers can log in and view their tickets in SuperOffice. And from your description is looks like this is no longer supported.

HL

by Henrik Larsen
13 u, 17 m geleden | 09:05 a.m.
push_pin lock

SSL peer certificate or SSH remote key was not OK

Hi dear Support, I  send in crm scripts Data to URL for our Web Apps, and got Error back: HTTPConnection::endRequest(): SSL peer certificate or SSH remote key was not OK. Therefore the Data in SO Cloud is not sent. I checked the URL has valid Certificate but with common Name: *.xxx.de The Web Apps of URL is hosted on our Webserver, According to our IT Support, it is about Wildcard Certificate with "*" in its name, so that its all Sub-Domain will be certifiable. however, it's a valid Certificates. How could I get around with this problem?   Thanks!
Jianchun You
3
6
22 apr. 2024 | 10:12 a.m.
Onderwerp:
Service and CRMScript Discussion

Laatste antwoord

Hi, What happens if you also try to set h.setOption("verifyHost", false); ? /Michel
by Michel Krohn-Dale
16 u, 7 m geleden | 06:15 a.m.
push_pin lock

Correct url parameters for opening appointments?

Hi, We have had numerous issues with openening existing/new entities within SuperOffice using SOProtocol in the latest releases, some have been fixed now (see bug  52109 , 53660, 54066 ), but since release 10.3.4 we had a customer experience another issue, opening a existing appointment or creating a new appointment using a SOProtocol url would always open the latest appointment. We open the existing appointment like this; /default.aspx?appointment.main?appointment_id=<appointment id> And create a new appointment like this: /default.aspx?appointment.main?appointment_id=0&contact_id=0&person_id=0&calendarassociate_id=<id>&doby=<start date>&endDate=<end date>   We changed this now, to make it work again: Existing appointment: /default.aspx? appointment[mainmode=edit]? appointment_id=<appointment id> New appointment: /default.aspx? appointment[mainmode=edit&new=true] ?appointment_id=0&contact_id=0&person_id=0&calendarassociate_id=<id>&doby=<start date>&endDate=<end date>   Question is, is this the correct syntax now? Or is this going to break again in the next release?
David Hollegien
2
4
22 apr. 2024 | 08:43 a.m.
Onderwerp:
Online development and web service API's

Laatste antwoord

Hi Tony, Thanks for the info. Would this mean that the way we are doing it now would break in next release? (then I know how much time we have once they are upgraded to 10.3.5 😅)
by David Hollegien
23 apr. 2024 | 11:53 a.m.
push_pin lock

Show script-based selection in CRM

Hi, Is it possible to show and edit a script-based selection in SuperOffice CRM?  (I would like to pass in a value as well for the selection so that it can update depending on the value. ) Regards Fredrik  

FL

Fredrik Larsson
2
1
22 apr. 2024 | 12:51 p.m.
Onderwerp:
Service and CRMScript Discussion

Laatste antwoord

Hi Fredrik, No, Script based selections aren't available in the CRM client. 
by David Hollegien
22 apr. 2024 | 04:20 p.m.
push_pin lock

Setting Integer and Bool values in triggers

I'm making a new message trigger that should set an extra field on a ticket/request. for extra fields of type String this works as expected, but for Integer and Boolean I'm unable to set the value:   Integer ticketId = Integer(ed.getInputValue("outbox.ticketId"));   NSTicketAgent ticketAgent;   NSTicketEntity ticket = ticketAgent.GetTicketEntity(ticketId);   Map extras;   extras.insert("x_snorre", "string value inserted");    //works   extras.insert("x_snorre2", "34");       //don't work   extras.insert("x_snorre2", "[34]");     //don't work   extras.insert("x_snorre2", "[I:34]");   //don't work   ticket.SetExtraFields(extras);   ticketAgent.SaveTicketEntity(ticket);   Any suggestions?

SG

Snorre Garmann
2
2
22 apr. 2024 | 05:45 a.m.
Onderwerp:
Service and CRMScript Discussion

Laatste antwoord

Hi Snorre, Extra Fields (for service entities) and User-Defined Fields (for Sales entities) are in transition to unifiy. If you use the CustomFields property instead, you should get better results. CustomFields is the new replacement that unifies them when applicable. Best regards. 
by Tony Yates
22 apr. 2024 | 07:18 a.m.
push_pin lock

Customer has unread messages

Hi I'm trying to figure out an efficient way to make a method that through the api return true/false if the customer has any new tickets or any unread messages to existing tickets. I see that there is a ReadByCustomer field on the Ticket entity, so I might be able to use this in some way.  Any suggestions as to how I should approach this?  

SG

Snorre Garmann
2
3
3 apr. 2024 | 06:14 a.m.
Onderwerp:
Online development and web service API's

Laatste antwoord

I found a couple of ways, but none are very satisfying. There is a way to set the ReadByCustomer field through crm script, but then I would have to create a custom Rest api endpoint and connect the script to that. I am currently trying to set a boolean extra field on ticketentity in a crm script trigger to True whenever a message is added to a ticket. Then I can set the extra field to false when the ticket is displayed in my customer portal. I'm anxious to see how this performs when I create a request to check if the customer has any new messages or not.

SG

by Snorre Garmann
22 apr. 2024 | 05:51 a.m.
push_pin lock

Limit size of attachment (Customer Service)

Is it possible to limit size of attachments in Customer Service? Our customer's smtp-mailserver doesn't support sending files larger than 20MB so it would nice to show some error upfront.

MT

Mikko Tillikainen
3
1
18 apr. 2024 | 09:09 a.m.
Onderwerp:
Service and CRMScript Discussion

Laatste antwoord

Hi Mikko, You could create a trigger outbox script to block outgoing messages with attachments larger then 20 MB, and add a message to the ticket that the attachment is too larger for example.
by David Hollegien
18 apr. 2024 | 12:28 p.m.
push_pin lock

Columns from extra tables in archive providers

I'm trying to fetch a list of contacts using the SuperOffice.WebApi C# library, and I want to include some attributes from an extra table y_whatever/x_name . The table has a key x_contact defined as a relation to the contact entity.  I tried var result = await agent.GetArchiveListByColumns2Async(                 "Contact",                 "contactUdef/My:SpecialID, name, registeredDate, contactExtra/y_whatever/x_name",                 "name",                 restrictions.ToString(),                 "contact",                 0,                 10             ); The result contains data for all but the last column. There is probably a way to retrieve extra data that I'm just too inexperienced to find.  Please help? Bonus question: While I have been testing fetching a simple text field from the extra table, the data I really want is defined in another extra table, call it y_codeTable .  The y_whatever table is defined with an "Extra table relation" field to this.  How can I follow that relation to find y_codeTable/x_description ?

PK

Peder Klingenberg
4
4
10 apr. 2024 | 08:40 a.m.
Onderwerp:
Client libraries and tools

Laatste antwoord

Thank you. Lot's of useful information here. It turns out my first attempt had missed that I needed the x_contact_id as part of the path. After looking at the available columns, it was a trivial fix.

PK

by Peder Klingenberg
18 apr. 2024 | 10:21 a.m.