Building a server-side app - Part 1: Core concepts

Have more questions? Submit a request

9 Comments

  • Michal Wysocki
    Comment actions Permalink

     It does not work. I have my test app hosted on https://X.X.X.X/ server. The home page loads fine but when i click on the link that should take me to login page https://X.X.X.X/Account/Login I get an error; Refused to display 'https://X.X.X.X/Account/Login?origin=https%3A%2F%2F<OUR DOMAIN>.zendesk.com&app_guid=<APP GUID>' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

    0
  • Michal Wysocki
    Comment actions Permalink

    My server app was blocking it. The following resolved it:


    protected void Application_Start()
    {
    ...
    AntiForgeryConfig.SuppressXFrameOptionsHeader = true;
    }

    0
  • Mike
    Comment actions Permalink

    Is there a way to set the sidebar URL using a paramter?


     


    like so ... https://{{setting.username}}.mysaas.com


     


    ?

    0
  • Joey
    Comment actions Permalink

    @Mike-


    Currently using settings placeholders is only for domainWhitelist. More info can be found at this thread.

    0
  • Benjamin
    Comment actions Permalink

    When developing and testing, what app_guid should I use? Currently ZAFClient initialization fails because of lack of app_guid.

     

    Footnote: My code was working 3 days ago without an app_guid, but not anymore. :-|

    0
  • Charles Nadeau
    Comment actions Permalink

    Hi Benjamin,

    You retrieve the app_guid parameter from the initial page request by Support when your app starts. For details on getting the parameter, see:

    https://develop.zendesk.com/hc/en-us/articles/360001075008#params

    Thanks.

    0
  • Benjamin
    Comment actions Permalink

    Charles, thanks for your swift reply. You pointed me in the right direction so now everything is clear.

    Thanks a lot!

    0
  • Javilondo Molina
    Comment actions Permalink

    Hi team,

     

    I'd like to create a server-side app that fetches data from my database and expose it on the agent interface. However, I don't know if what I'm trying to do next is possible. I'd like to create a trigger that acts upon this data.

    For example, I'm getting a list of Ids from my database and this will be available on the agent view with my server side app. However, I'd like to create a trigger to close a ticket when the ID of one of these users appears as a string in the subject of the ticket? I've had a look at the trigger conditions and I don't know if this is possible.

     

    Thanks

    0
  • Bryan - Community Manager
    Comment actions Permalink

    Hi Javilondo Molina. Check out this article: Using custom ticket fields in business rules and views.

    Depending on your use case, it may be possible, but double-check that what you want is possible given the custom field type.

    This might also be a useful article down the road if using Targets with triggers: How do I pass custom ticket values to a trigger?

    0

Please sign in to leave a comment.

Powered by Zendesk