Use protocols to open request

lock
push_pin
done
Answered
8

I want to control the SuperOffice CRM web through the web tools (tray app), I want to open tickets for a person or for a company, and I want to create a new ticket for a given person. I have tested and I can open a ticket, if I have an id or a new ticket also. The docs have not yet been updated for ticket entities, see it here: SoProtocol

This is how I did it in the old service versions.

  // http://service.xxx.com/scripts/ticket.exe?_sf=0&action=viewTableEntry&table=contact&id=3
  // http://service.xxx.com/scripts/ticket.exe?_sf=0&action=viewTableEntry&table=person&id=17690
  // http://service.xxx.com/scripts/ticket.exe?action=newTicket&custId=17690

superoffice:ticket?ticket_id=4 is the only one I can find to show a ticket and it doesn't list the request like I want (of cause).

EDIT: superoffice.ticket.new?person_id=1 will open a new ticket filled with the person selected. So that one is solved

Does any one have a list of the new protocols for ticket ?

28 Aug 2023 | 09:11 AM

All Replies (8)

Url based you can open a ticket like this:

.../default.aspx?ticket.main?ticket_id=

Create a new ticket:

../default.aspx?ticket.new

SOProtocol:

EventData eventData = getEventData();

// open existing ticket
eventData.setNavigateTo("soprotocol:ticket.main?ticket_id=220");

// create new empty
eventData.setNavigateTo("soprotocol:ticket.new");

// create new with specific person
eventData.setNavigateTo("soprotocol:ticket.new?person_id=1756");
28 Aug 2023 | 10:01 AM
Thank you, I have this covered now.
But how about showing a ticket list for a company or a person, is that posible with a protocol ?
28 Aug 2023 | 10:04 AM

You can redirect to the standard entity screen and show the default ticket archive:

contact.main.ticketarchive?contact_id=1520

person.main.ticketarchive?person_id=1756

I don't think you can open a specific ticket search using SOProtocol, you can redirect to the find/search page, but not specify any criteria (ticket.findticket)

28 Aug 2023 | 10:08 AM
Oh yes! That makes sence, with the new design. Thank you! I was going for the old screen.
28 Aug 2023 | 10:11 AM

BTW: Do you know if it is possible to keep the card (top) of contact, like: soprotocol:contact.[use-current].ticketarchive?contact_id=1

It would kind of top of the funktionallity I think.

28 Aug 2023 | 10:26 AM

As far as I know you will need to specify the top view to be able to set a bottom view.

You could retrieve the current user state and parse the currently active top view from there (user preference, owner_id = associate id, prefsection = 'SuperMode', prefkey = entity (contact/person))

28 Aug 2023 | 10:38 AM
Nice trick! Thank you.
28 Aug 2023 | 10:40 AM

Does this work with the script based triggers for Requests ? 
I can for example do this from a sale/contact/project window but not from a request window. 

What I am trying to achieve is to navigate to a specific script in the minipanel whenever i am in the ticket window irrespective of being in view/edit/new ticket. 

27 Sep 2023 | 03:44 PM

Add reply