Discussions

Ask a Question
ANSWERED

Retrieving Task Details with RetrieveMultiple() is failing

Hi! The code we have been using successfully for multiple integrations to retrieve the task details - RetreiveMultiple() (code below) - is failing for a new client setup with the error: Exception: Index was outside the bounds of the array What is the best way to determine if the client data needs some additional setup to help resolve this problem? Thanks, Lindsay ``` string taskCode = "03.0011.0008"; var taskResults = corrigoService.RetrieveMultiple( new CORRIGO.QueryExpression { EntityType = CORRIGO.EntityType.Task, PropertySet = new CORRIGO.AllProperties(), Count = 0, FirstResultIndex = 0, Criteria = new CORRIGO.FilterExpression() { FilterOperator = CORRIGO.LogicalOperator.And, Conditions = new[] { new CORRIGO.ConditionExpression() { PropertyName = "Number", Values = new object[] { taskCode, }, Operator = CORRIGO.ConditionOperator.Equal }, } }, Distinct = true, Orders = new[] { new CORRIGO.OrderExpression { OrderType = CORRIGO.OrderType.Descending, PropertyName = "Id" } }, } ); ```
ANSWERED

RepairCode is not in data returned from https://am-ce911c.corrigo.com/api/v1/base/WorkOrder?ID=xxxxxxxxx

repaircode is referenced here in workorder entity: <https://developer.corrigo.com/reference/entities-2#workorder> but i can't find it in the work order returned from above endpoint
ANSWERED

Using AssetTree entity, is it possible to move the asset from 1 WorkZone to another?

AssetTree.ParentId refers to AssetId of the owning WorkZone I believe. If that is correct, is it possible to move an asset (and all it's children) from one WorkZone to another?
ANSWERED

Does Corrigo API have another way to execute /query endpoint with pagination, with FirstResultIndex on query string parameter?

Something like this <https://am-ce99a.corrigo.com/api/v1/query/Space?FirstResultIndex=2000> Where the Body contains a typical QueryExpression like below {"QueryExpression":{"Criteria": {"Conditions":\[],"FilterOperator": "And"},"Distinct": true,"Count": 4000,"PropertySet":{"Properties":["*","Asset.*","Asset.Address.*","Asset.Attributes.*"]}}} Asking because Azure Data Factory does not support dynamic pagination in the body and only as parameters in the URL
ANSWERED

Corrigo contact import - Questions

Hi, I pulled a sample file from corrigo UI for importing contacts in bulk, wanted to know how can I import the contact file through Corrigo api's? or where should I place the file once I have it ready through an automated process so it can be quickly ingested into corrigo?
ANSWERED

Issue with hitting GetContact api

Hi, I'm facing an issue with hitting the api to get contacts I used the below auth endpoint to generate the token and it ran fine. <https://oauth-pro-v2.corrigo.com/OAuth/token> On using the same token, when I hit the api call to GetContact, I’m getting this error Endpoint - <https://am-ce99c.corrigo.com/api/v1/base/Contact/500> Or <https://am-ce910c.corrigo.com/api/v1/base/Contact/500> In the headers , I used the company name as below : CompanyName : Stage JLL Blackstone Error – { "ErrorMessage": "Company database isn't accessible", "ErrorCode": "DATABASE_VERSION_MISMATCH", "TimeStamp": "2023-06-22T11:09:57.9626441Z" } Can you please assist with this?
ANSWERED

Default Site for Contacts through API

Does anyone know the method/docu for setting a contact's default site via API? Nothing regarding that in the site documentation, but has to be possible... right?
ANSWERED

Error Numbers? Where to find Number Meaning?

Looking at the documentation regarding error code numbers, the documentation mentions the following: Error Code template, where {Number} is ErrorNumber (Corrigo.Core.Resources.ErrorCodes) returned from CorrigoService Where is the "Corrigo.Core.Resources.ErrorCodes"? I checked this site: <https://securecontent.corrigo.com/docs/HelpCE98/html/4fbd8533-0aec-79e9-cee1-2a6eb8a752d4.htm> but could not find anything regarding ErrorCodes.
ANSWERED

examples in GET (Retrieve) section are wrong

examples in GET (Retrieve) section of documentation are wrong. see here <https://developer.corrigo.com/reference/get>
ANSWERED

Location Mismatch with Corrigo API and Tickets redirecting it wrong location

Hi Team, Please can you help us with the following code where I want to know which fields the data is rolled out. Please can you confirm, **what is the ID of the bold code below.** \<soap:Body> \<int:Execute> \<int:commandRequest xsi:type="int:WoCreateCommand" xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance">> \<int:WorkOrder> \<int:TypeCategory>Request\</int:TypeCategory> \<int:SubType> **\<int:Id>259\</int:Id>//Please can you confirm is this the location ID** \</int:SubType> \<--Customer.Id from Step 3> \<int:Customer> \*\* \<int:Id>27\</int:Id> \</int:Customer> \<int:ContactName>Store Manager\</int:ContactName> \<int:ContactAddress> \<int:AddrTypeId>Contact\</int:AddrTypeId> \<int:Address>214-555-5555\</int:Address> \</int:ContactAddress> \<int:Items> \<int:WoItem> \<--Asset.Id from Step 4 or 5> ``` <int:Asset> <int:Id>4182</int:Id> </int:Asset> ``` \<--Task.Id from Step 6> ``` <int:Task> <int:Id>14819</int:Id> </int:Task> <int:Comment>This is a WO description demo</int:Comment> </int:WoItem> </int:Items> <int:CustomFields> <int:CustomField2> <int:Descriptor> <int:Id>1</int:Id> </int:Descriptor> <int:ObjectTypeId>WO</int:ObjectTypeId> <int:Value>123456</int:Value> </int:CustomField2> </int:CustomFields> </int:WorkOrder> <int:ComputeSchedule>true</int:ComputeSchedule> <int:ComputeAssignment>true</int:ComputeAssignment> </int:commandRequest> </int:Execute> ``` \</soap:Body> \</soap:Envelope>