how can we pass parameters for Custom connector Query component?
In custom connector i am calling API with 2 parameters startDate and EndDate.
but how can i enter values from Query component to give input to these parameters?
No luck Nate, actually i am using model class for entity. if i declare these parameters in that class as properties then these are showing in filter list just like other fields. 1.can i proceed like this?
2.is this model class overriding the parameters added in the MetadataProvider class?
After inspecting a Connector of mine, I can see from the Scribe Online API calls that I also used QuerySequence == true:
When you reset metadata in Scribe Online, also try refreshing your browser page (just in case there's a caching issue).
Let me know if these suggestions help.
I have written the code as you said and this code executing but not showing as a parameters in scribe online. please find the code below
Note: these start and end date parameters are not available in a table as columns.
IObjectDefinition objectDefinition = null;
objectDefinition = new ObjectDefinition
Name = entityType.Name,
FullName = entityType.Name,
Description = string.Empty,
Hidden = false,
RelationshipDefinitions = new List<IRelationshipDefinition>(),
PropertyDefinitions = new List<IPropertyDefinition>(),
SupportedActionFullNames = new List<string>()
if (entityType.Name.ToLower() == "completedcontacts")
objectDefinition.PropertyDefinitions = new List<IPropertyDefinition>
Description = "Start Date",
FullName = "StartDate",
IsPrimaryKey = false,
MaxOccurs = 1,
MinOccurs = 0,
Name = "StartDate",
Nullable = false,
//NumericPrecision = 0,
NumericScale = 0,
PresentationType = "DateTime",
PropertyType = typeof(DateTime).Name,
UsedInActionInput = true,
UsedInLookupCondition = true,
UsedInQueryConstraint = true,
UsedInActionOutput = false,
UsedInQuerySelect = true,
UsedInQuerySequence = false
In your ObjectDefinition where you declare those fields as a PropertyDefinition, set the field property UsedInQueryConstraint to true:
Most connectors, like the sample listed above, have a Class that describes the object used in the web service call, as well as how to describe Scribe's metadata. From that object, they'll have a method that [typically uses System.Reflection to] create the Scribe property values, similar to this: https://gitlab.com/ScribeSoftware/sample-scribe-platform-api-connector/b...
I hope this helps.