How to pull data from ServiceNow using GraphQL?

Ganeshm1
Tera Guru

Hi All,
How to pull data from ServiceNow using GraphQL?
Hope you are doing good!

 

I have requirement to pull the data from LeanIX application using GraphQL API. 
Does anyone have idea how we can achieve this functionality. Your small input will really help me to complete my POC. Please let me know your ideas on this. Thank You!

 

Regards,

Ganesh

1 ACCEPTED SOLUTION

Hi @Ganeshm1 ,

 

We used REST API and we used Oauth Token to established the connection between LeanIX and ServiceNow. Create a GET method in your REST API to get info from LeanIX Like business services, business capablities.


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

8 REPLIES 8

Hi @Ganeshm1 ,

 

We used REST API and we used Oauth Token to established the connection between LeanIX and ServiceNow. Create a GET method in your REST API to get info from LeanIX Like business services, business capablities.


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

@Sohail Khilji : 
Make sense but how we can utilize GraphQL method in this process? Please let me know your thoughts on this. Thank You!

refer the doc which i shared and also the below must help...

 

https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/graphql/concept/scri...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Abhishek_Thakur
Mega Sage

Hello @Ganeshm1 ,

 

You can refer my below link, where I have already explained how to create GraphQL API to retrieve the data.

 

https://www.linkedin.com/posts/abhishek-thakur-4636a722b_graphql-activity-7108046049755168768-cwwf?u...

 

Please accept my answer and give thumbs up, if it helps you.