• 'The given key '()' was not present in the dictionary.' Error

    Wanted to provide a solution to an old post on here. In our situation, when this item presented, it was a missing item from one of the float codes, specifically for updates. This is a C#, server-side method. Under the 'new Dictionary' item list, we…
  • What is the correct syntax of writing "where" statement in AML with C#

    I need to write just write one line of AML wrapped in C# and store the ID of the item in a variable code: Innovator inn = this.getInnovator(); string amlString= @"<AML><Item type='Document' action='get' where='item_number='MADL002828'' select='Document…
  • Is there an easy way to run code after a change/creation transaction finished?

    Hello, I need to send a created/ changed item to another service. I have some code that just needs the ID of an Item, it then retrieves it from the database and sends it to the other service. The problem I am facing is that, I can't find a way to…
  • Server Method working when given a GUID, but not when using this

    Hello, When I run this server method from the method itself and use a GUID to get the Item I want to update the method works fine, but when I change it from a GUID to = this; and run it from the Item Type on the server events "OnBeforeUpdate" it crashes…
  • How to use Visual Studio Code 2022 for Coding Methods

    I am new to Aras development, and I'd like to use Visual Studio Code 2022 ("VS Code") for coding Innovator methods. I found the ArasVSMethodPlugin project on GitHub , and its change log indicates that support for VS Code 2022 was added in version 1.21…
  • Code Snippet: Generic, Reusable Code to Get All Identities In a Group

    Hello everyone, Here is a code snippet to retrieve all identities in a identity (group) recursively. As I faced this requirement multiple times, and Innovator not having a standard function for it, I decided to create it myself. //*************…
  • Need Guidance: Prevent On Close Server Event to get called when there is Error (when voting) and the CM Activity is not Closed?

    Hello All, I'm creating a server-side method that sends an email to the Change Leader. It gets invoked " on close " in association with a Change Management workflow activity. The email should be sent only when the activity is closed, and the workflow…
  • Calling SearchDialog from Server method

    Hi, Is it possible to show SearchDialog from a Server method? I can use MaximazableDialog in Javascript to show the SearchDialog and get the response in callback. But I want to use such facility in a Server method. In my particular case, I am trying…
  • Get the Context Action Name in the Method

    Hi All, I have Multiple Server Side Item Actions Configured on the Part Item , I want the logic/functionality to be performed by each action to be controlled by the same method . In which case , is there a way to pass the Invoking action name to the…
  • Run Action from Relationship

    I have an Itemtype A and a relationship to Itemtype B On the Main grid of ItemType B I have an action which works perfectly fine On Itemtype A in the relationship Grid where there is ItemType B if i place my action there It does not work. I was wondering…
  • how to execute in multithread

    Hi all, Could you please explain how we can execute in multiple threads? And how to rollback all transactions in these threads when if an error occurs. Kindly help. Thanks. Gantulga
  • Commit the transaction half way through the code and continue the execution from there.

    Hi Team, We have a scenario where we want to commit the transaction half way through the code and continue the execution from there. For example : 1. We are working on Background tasks implementation 2. Where we want to change the status [property…
  • Accessiong the Values OnBeforeVersion AML Action="Version"

    I have some problem with the OnBeforeVersion trigger, If I try to create a new generation through AML with e.g. <AML> <Item type="Part" id="XXXXX" action=" version " select="id,keyed_name,description,created_on,modified_on,state,generation,config_id…
  • How implement method aras to get data from data base oracle using DLL!!!!

    How implement method aras to get data from data base oracle using DLL!!!!contact me! i created method c# in VS .net that connect the database oracle, some one have idea how create method in aras that get this data from data base !!!
  • How to color grid cells according to properties that are hidden in grid?

    Hi Community, I hope somebody can give me some hints to solve the following use case. I use an onAfterGet Server Method in ItemType Part that colors certain columns like ‘state’. Now I want to add some color to an additional property that contain…
  • Get beforeupdate Relationships value from parent item

    there is a item name -Part and it has relation -Part_relation there are a date field and name field in Part_relation when user update , I want to check the field'value Cannot be earlier than Today When encountering an error, I will return inn…
  • Method for event OnAfterUnlock

    I want to promote an Item state when user unlock it. I create a simple LifeCycle: "New"-->"Released" I habe write this method on the server event "OnAfterUnlock": Innovator inn=this.getInnovator(); string itemnumber = this.getProperty("item_number…
  • How to call a server method with applyMethod() from a client method, and use the results coming back from server

    Server Method : [Get_Identity_Details] Can run this and get results I want. Hard coded guid for test Innovator inn = this.getInnovator(); string sessionuserid = this.getProperty("sessionuser","invalid"); if (sessionuserid == ""){} StringBuilder sql…