---
updatedAt: 2025-06-05T01:08:02.000Z
agentTools:
  projectIndex: https://api.portal.xpertdoc.com/llms.txt
---

# SearchTemplateExecutionData

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "odata4-v6",
    "version": "5.0"
  },
  "servers": [
    {
      "url": "https://portal.xpertdoc.com/odata4/v6"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/TemplateGroups(:templategroupid)/Xpertdoc.Portal.SearchTemplateExecutionData": {
      "post": {
        "summary": "SearchTemplateExecutionData",
        "description": "",
        "operationId": "selectdocumentoutputpostaction-templategroup",
        "parameters": [
          {
            "name": "templategroupid",
            "in": "path",
            "schema": {
              "type": "string",
              "default": "00000000-0000-0000-0000-000000000000"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "criteria": {
                    "type": "string"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "criteria": "Criteria Content"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n   \"@odata.context\":\"http://portal.xpertdoc.com/odata4/v6/$metadata#TemplateExecutionData\",\n    \"value\": [\n        {\n            \"TemplateExecutionDataId\": \"00000000-0000-0000-0000-000000000000\",\n            \"TemplateId\": \"00000000-0000-0000-0000-000000000000\",\n            \"DataType\": \"Draft\",\n            \"Content\": \"<xml>Content</xml>\",\n            \"RawContent\": null,\n            \"CreatedByUserProfileId\": \"00000000-0000-0000-0000-000000000000\",\n            \"CreatedDate\": \"2015-01-01T00:00:00.0000000ZZ\",\n            \"ModifiedByUserProfileId\": \"00000000-0000-0000-0000-000000000000\",\n            \"ModifiedDate\": \"2015-01-01T00:00:00.0000000Z\",\n            \"Timestamp\": \"AAAAAAABkMM=\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "@odata.context": {
                      "type": "string",
                      "example": "http://portal.xpertdoc.com/odata4/v6/$metadata#TemplateExecutionData"
                    },
                    "value": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "TemplateExecutionDataId": {
                            "type": "string",
                            "example": "00000000-0000-0000-0000-000000000000"
                          },
                          "TemplateId": {
                            "type": "string",
                            "example": "00000000-0000-0000-0000-000000000000"
                          },
                          "DataType": {
                            "type": "string",
                            "example": "Draft"
                          },
                          "Content": {
                            "type": "string",
                            "example": "<xml>Content</xml>"
                          },
                          "RawContent": {},
                          "CreatedByUserProfileId": {
                            "type": "string",
                            "example": "00000000-0000-0000-0000-000000000000"
                          },
                          "CreatedDate": {
                            "type": "string",
                            "example": "2015-01-01T00:00:00.0000000ZZ"
                          },
                          "ModifiedByUserProfileId": {
                            "type": "string",
                            "example": "00000000-0000-0000-0000-000000000000"
                          },
                          "ModifiedDate": {
                            "type": "string",
                            "example": "2015-01-01T00:00:00.0000000Z"
                          },
                          "Timestamp": {
                            "type": "string",
                            "example": "AAAAAAABkMM="
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"odata.error\": {\n        \"code\": \"\",\n        \"message\": {\n            \"lang\": \"en-US\",\n            \"value\": \"The request is invalid.\"\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "odata.error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": ""
                        },
                        "message": {
                          "type": "object",
                          "properties": {
                            "lang": {
                              "type": "string",
                              "example": "en-US"
                            },
                            "value": {
                              "type": "string",
                              "example": "The request is invalid."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "csharp",
              "code": "var templateGroup = portalContext.TemplateGroups.Where(tg => tg.TemplateGroupId == Guid.Parse(\"00000000-0000-0000-0000-000000000000\")).FirstOrDefault();\t\n\nvar response = templateGroup.SearchTemplateExecutionData(\"Search criteria\").Execute();"
            }
          ],
          "samples-languages": [
            "csharp"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```