Discussions

Ask a Question

Deactivating a Customer

Hi! Can you please provide me with a sample of how I would deactivate a Customer? The Data Model of Entities page shows a Property called IsRemoved, which "gets or sets the boolean flag indicating if an entity was deleted". Since I don't think there is a way to actually delete a Customer, I believe this would be the property to do the trick of deactivation. In my testing, active Customers showed 0 and deactivated Customers showed 1. When I tried to update this from 0 to 1 to deactivate a Customer, the response was successful, but the Customer did not deactivate. The Property value is still 0. All the other updates I passed successfully updated their properties as intended. Thank you!

Updating Asset Attributes

Hi! Can you please provide me with a sample of how I would update an asset attribute value? I tried to do it using the AssetAttribute entity and attribute ID and value, but I received the error below. It correctly identified the asset to whom the attribute ID belonged. I just need to see where both items fit to make it work. Error: Asset Attribute modifications must be performed in parentâs context; parent ID #1830 Also, is it possible to use Descriptor IDs to update asset attribute values rather than individual asset-level attribute IDs. It would save me the step of finding the attribute ID for the particular asset before I can update it. I would already have the Descriptor ID and Asset ID. Thank you!

WoCompleteCommand HTTP 404

Hello, I'm trying to automate the ability to complete a work order via API. See following code: "{" + " \"commandRequest\": { " + " \"type\": \"WoCompleteCommand\"," + " \"WorkOrderId\": \"376508\" " + " }, " + " \"RequestId\": \"1234\" " + " } " This returns the following error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>404 - File or directory not found.</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;} fieldset{padding:0 15px 10px 15px;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0;color:#CC0000;} h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans- serif;color:#FFF; background-color:#555555;} #content{margin:0 0 0 2%;position:relative;} .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} --> </style> </head> <body> <div id="header"><h1>Server Error</h1></div> <div id="content"> <div class="content-container"><fieldset> <h2>404 - File or directory not found.</h2> <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3> </fieldset></div> </div> </body> </html> I have ensured the WorkOrderId is correct and the user is correct. The string returned is the correct format as far as I can tell, see the returned string below: { "commandRequest": { "type": "WoCompleteCommand", "WorkOrderId": "376508" }, "RequestId": "1234" } Permissions for the user account are all set to allow WoCompleteCommand. Not sure what the issue is, any help would be appreciated.

Can I designate an assignee in a WoCreateCommand via API?

Hello, I'm working on a project where I am integrating automatic work orders based on an analytics system. I have a sucessfull one-way integration, where I can communicate to Corrigo and use the WoCreateCommand to generate tickets. However, I can't seem to figure out how to designate an account to assign the tickets to. I have figured out auto-assign using the following: AutoAssignEnabled: true ComputeAssignment: true But this does not help me very much. I'd like to be able to do something along the lines of: AssignTo: Example User Is there a way to do this?

How to submit quote to a work order

Hi, i am new to corrigo enterprise. I queried workorders with status "New" How could i accept any WO via API and how could i submit quote to it. Thanks

PO in workorder

Hi, am new to corrigo. Want to work with purchase order and totally stuck. Please guide the steps. I have listed workorders with status "New" and these are some of keys Number: "INTL0732" PoNumber: "" Priority: {Id: 2} I want to know how PoNumber gets into, what are steps and prerequisite to add it

Is there a way to create Customer group via API?

We have a list of customer groups in sandbox, URL ".corrigo.com/corpnet/customer/customergroups.aspx" Page under Enterprise site - Restaurants -> Restaurant Groups Is there a way to create a customer group via API then attach locations to it?

WorkOrder and WoEstimate information Together

Is it possible to pull WorkOrder and WoEstimate data together. In the documentation for WorkOrder Entity, it mentions Estimate, but when pulling base WorkOrder info, Estiamte (or an estimate Id) isn't included. I can also pull all WoEstiamte via a post to base_url+'api/v1/query/WoEstimate' But lets say I wanted all Open Work Orders and the WoEstimate data. I know how to write a query for all open work orders, but since WoEstiamte doesn't have WO status, I'd end up having to pull all WoEstimates and then outside of the API tie the 2 together via WorkOrderId. This is an issue because there is a 4000 record limit. To avoid hitting this limit for WoEstimate query, is it possible to write a query to WorkOrder entity and do sometime of join to include WoEstimate data in the request? Thanks.

Finding All Flags on a WO

Is it possible to see all flags on a WO via the query/WorkOrder? Since a WO can have multiple flags, I was expecting to see a list of all flag IDs on a WO. But when running the following: wo_query_url = base_url+'api/v1/query/WorkOrder' Post Request wo_query_payload = {'QueryExpression': { 'Criteria': { 'Conditions': [ { 'PropertyName': 'Id', 'Operator': 'Equal', 'Values': [1148305] } ], 'FilterOperator': 'And' }, 'PropertySet': {'Properties': ['*']} } } I only see 1 FlagId, even thought he WO has multiple flags on it. I tried expanding the Flag by using 'Flag.*' in the PropertySet, but it only provided information on the 1 flag that was being returned, not all flags. My second thought was to just do a query and see if it would return WOs with a specific FlagId. Running the following: wo_query_url = base_url+'api/v1/query/WorkOrder' Post Request wo_query_payload = {'QueryExpression': { 'Criteria': { 'Conditions': [ { 'PropertyName': 'FlagId', 'Operator': 'Equal', 'Values': [3369] } ], 'FilterOperator': 'And' }, 'PropertySet': {'Properties': ['*']} } } When running the above, I get the following error: {'ErrorMessage': "Condition value type 'System.Int64' for 'FlagId' property is not valid for this operation.", 'ErrorCode': 'BUSINESS_LOGIC_ERROR', 'TimeStamp': '2022-08-30T16:33:05.2046117Z'} I thought the Flag ID was an int value, but I must be doing something wrong here. Is my thought correct, if a WO had multiple flags, say ID 3369 and 3370. If via the first query was only returning flag ID 3369 on the query. If I was able to do a query for flag 3370, would the work order show up? I would expect it to, but I can't get the flag query to work.

Internal Cost BillZero Field

I may be missing something, but when pulling Internal Cost detail on a give WO, I'm not seeing a field or value for the BillZero toggle that is in the front end. Running the following query as a post request: cost_detail_url = base_url+'api/v1/query/WorkOrderCost' cost_detail_query = { 'QueryExpression': { 'Criteria': { 'Conditions': [ { 'PropertyName': 'Items.TypeId', 'Operator': 'Equal', 'Values': ['Cost'] }, { 'PropertyName': 'ID', 'Operator': 'Equal', 'Values': [1148305] } ], 'FilterOperator': 'And' }, 'Distinct': True, 'PropertySet': {'Properties': ['Items.*']}, 'Count': 20, 'FirstResultIndex': 0 } } This returns internal cost detail and I can see a field for "NonBillable". But I'm not seeing "BillZero" field. Do I need to adjust my query or request? Or is this BillZero field missing from the API? Thanks