Skip to main content

LINQ methods in querying JSON data

Use Language Integrated Query (LINQ) methods to query lists and collections in your automations. When working with JSON files, use LINQ methods to efficiently iterate through and search for specific data within your files, reducing the number of design blocks needed. Use these methods to create more complex comparisons and convert data before making those comparisons. 

For example, a telecommunications company publishes annual reports on its website detailing customer-reported incidents. To achieve this using LINQ methods, developers need to construct the appropriate query and pass it to the proxy set up in earlier steps. The query is formulated using C# syntax. For more examples of building the queries using LINQ methods, see Using LINQ methods in a query on the Pega Documentation site.  

The LINQ methods use a query as an input parameter. In the example provided, the developers used the SingleOrDefault LINQ method, which returns the only element that satisfies a condition.  

For more examples of LINQ methods that you can use to build automations, see LINQ methods on the Pega Documentation site.  

In the following interaction, click the + icon to learn more about example automation using LINQ methods:   

Check your knowledge with the following question:


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice