Single Select Lookup > WCF
This topic shows how to create a lookup with WCF as the data source for the Single Select Lookup form control.
Background and Setup
Prerequisites
- AgilePoint NX OnDemand (public cloud), or AgilePoint NX Private Cloud or AgilePoint NX OnPremises v7.0 Software Update 2 or higher.
Good to Know
- Limitations
These technical limitations apply to Web Service and WCF support in process activities and lookups:
- Arrays of primitive data types.
Arrays of primitive data types — for example, string, Boolean, integer, decimal — are not supported as input or output data types because this interferes with the deserialization of the array object.
However this does work with an array of complex classes and custom classes or a list of primitive data types.
If you have a service that returns an array of primitive data types, these workarounds are suggested:
- Return a list objects instead of arrays — for example, List<string>, instead of string[]
- Create a custom class that encapsulates that property — for example, a class that has a property of type string.
- If you do not have control over the service, you can write a wrapper service that encapsulates the call to the underlying service and converts the array to a list object, or create a custom class that encapsulates that property.
- Dictionary objects.
Dictionary objects are not supported as input or output data type because XMLSerializer interferes with the deserialization of the dictionary object.
- Circular references.
Circular references are not supported in input and output objects — for example, if a class called Person contains a field of type Person that references the same class. Such a circular structure cannot be loaded in the XML Mapper.
- Nested WSDLs.
Web services with nested WSDLs are not supported. Consider making your service use single WSDL, or use the .Net Proxy activity.
- Arrays of primitive data types.
- Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?
How to Start
- On the Single Select Lookup form control configuration screen, on the Configure tab,
click Add Lookup.
For information about how to open this screen, refer to Single Select Lookup form control.
- On the Select Data Source Type screen, select WCF Service.
- Click Next.
Lookup Details
Specifies the basic configuration for a lookup.
Fields
Field Name | Definition |
---|---|
Access Token |
|
Add New |
|
Lookup Name |
|
Lookup Type |
|
Configure Lookup > Request tab
Configures a lookup with the existing data format from your data source.
Fields
Field Name | Definition |
---|---|
Service Operation |
|
Endpoint URL |
|
Generate Message Contracts |
|
Request Mapping |
|
Configure Lookup > Response tab
Connects the response data from the NetSuite call to your app.
Fields
Field Name | Definition |
---|---|
Service Operation |
|
Endpoint URL |
|
Generate Message Contracts |
|
Map Response to AgilePoint Schema |
|
Store the Response In This Variable |
|
Configure Lookup > Error Messages tab
Configures the message to show if the lookup does not return any data.
Fields
Field Name | Definition |
---|---|
Service Operation |
|
Endpoint URL |
|
Generate Message Contracts |
|
No Items Retrieved |
|
Lookup Failed |
|