I have received a couple of inquiries on how GraphQL Queries can be executed from AgilePoint NX Process and eForms. This article will go in-depth into how to configure a GraphQL Query using AgilePoint.
However, before I begin, lets first understand what is GraphQL
GraphQL is an open-source query language for your APIs with a service-side runtime for executing the queries based on a pre-defined schema. It is not tied to any specific database but rather backed by your existing code and data.
When an HTTP GraphQL request is made with a query, the GraphQL server parses the query and responds back with data usually in a specific JSON format. There can also be variables in a query that makes it more powerful and dynamic. In GraphQL, the HTTP verb is predominantly POST but there can be implementations where Query & Variables are sent in URL encoded query parameters in the URL. I have used Microsoft Graph API endpoint and SpaceX endpoint to call GraphQL queries using AgilePoint NX process and forms.
Call A GraphQL Query Using AgilePoint:
REST connector in AgilePoint NX can be used to call a GraphQL query-based API. Though it is labeled as REST API connector for ease of understanding as this is a major use case, in reality, it is a more generic HTTP connector and can call an HTTP service. I am leveraging that feature to configure GraphQL Query.
Let's look at this in action in the following video.
A modern process automation and orchestration platform that enables you to open up and seize new business opportunities, supercharge innovation, unlock new levels of efficiency and productivity, and deliver the experiences that help you win.
Platform
Automate business processes and workflows at scale. AgilePoint helps enterprises democratize and accelerate digital transformation, reduce technical debt and future-proof ROI.
Resources
© 2023 AgilePoint. All rights reserved.