GraphQL for 3rd Party Systems

Sharpy2
ServiceNow Employee
ServiceNow Employee

I am new to GraphQL....

 

We have a client who's new to SN and asking "what's the process for a developer to make a GraphQL call to an external/3rd party system?"  I've researched (here, community, support, and docs) this question and not finding any examples of how to configure GraphQL for a 3rd party system and its schema.  

 

The most recent article is Paris vintage, and does elude to this capability, but don't see the config examples.  Is it as easy as creating a connection/credential external endpoint, and pass it a GraphQL payload?  More to it than this, as I read and understand.  But generally, this is what I am looking for help on....

 

Any pointers are most helpful and appreciated!

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @Sharpy2 

 

it's not really clear for which request direction your question has been asked.

 

In case you want to perform on ServiceNow GraphQL requests to external service providers, it is just about creating the right REST requests. As a starting point please take a look on https://graphql.org/learn/ 

 

But in case you want to create a GraphQL endpoint in ServiceNow to allow 3rd party systems performing GraphQL requests to ServiceNow you have to define/configure/implement some artifacts. In that case I can recommend starting at the article series written by your colleague @Jon G Lind : https://www.servicenow.com/community/now-platform-articles/setting-up-and-testing-your-first-graphql... 

 

Maik

View solution in original post

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi @Sharpy2 

 

it's not really clear for which request direction your question has been asked.

 

In case you want to perform on ServiceNow GraphQL requests to external service providers, it is just about creating the right REST requests. As a starting point please take a look on https://graphql.org/learn/ 

 

But in case you want to create a GraphQL endpoint in ServiceNow to allow 3rd party systems performing GraphQL requests to ServiceNow you have to define/configure/implement some artifacts. In that case I can recommend starting at the article series written by your colleague @Jon G Lind : https://www.servicenow.com/community/now-platform-articles/setting-up-and-testing-your-first-graphql... 

 

Maik

Sharpy2
ServiceNow Employee
ServiceNow Employee

Hi Mark!

 

Thanks for reply.  The client wants to know if SN can use GraphQL to query a 3rd party system and what would be needed.  Is it as simple as preparing the payload with the correct variables to get a return Post from the 3rd party endpoint?

Hello Maik,

I'm new on servicenow GraphQL as well. Could you provide an example of your 1st solution ? I understand that in order to request third party systems i have to create a REST request, but how can i implement that in GraphQL ? is it possible to have a tutorial ?

Thank you for your help !