Hello Paul,thanks for your reply.It might actually work, but unfortunately the custom fields are not available even under ETM 1.7.1 - at least in relation with our current assyst Version 11.4.1. We will try again after an Update.Kind RegardsChristian
Hello,i found this related Topic searching for Answers on how to UPDATE an item Relation.Meanwhile i created a Solution on my own which can be found below:Issue: On the assyst Ressource Item Relation there are Fields for Main Item and Related Item:Unfortunatelly, there is only the Main item in Record to Update. The Combination without the Related Item seems not unique. As far as i understand, is this the reason why new Relations are created instead of updating an existing one:What i did is to get an variable assyst Search for both items and an Item Relation regarding the accessable fields:To get the correct ID for an Update from this list of entries, the found item relation is filtered for the relateditem:variables.item_rel.filter(function(group){return group.relatedItemId==variables.relateditem[0].id}).map(function(group){return group.id})[0]With the ID there is finally the posibility to do an updateHope this helps anyone else. Kind Regards,Christian
Hi,as i just found in an related Topic, this seems currently not possible: if there already exists a correpsonding Idea, i would like to support it.Kind RegardsChristian Margardt
Postscript:the way above had the issue, that only the first set of Events would be linked, even when there are multiple Events.Therefore i check for both EventMappers if the Event is included in the linkedEventGroup var result = null;if (variables.Parent_Event[0].linkedEventGroups.filter(function(group){return group.linkReasonId==39}).map(function(group){return group.id})[0]) { result = true;}result;Kind RegardsChristian
Hello Paul,thanks for the Javascript-Code. I adapted your solution for the Id instead of remarks. Therefore it can be used in a variable for the Record for Update. I also enclose it into “try-catch” to avoid undefined errors.try { variables.Parent_Event[0].linkedEventGroups.filter(function(group){return group.linkReasonId==39}).map(function(group){return group.id})[0];}catch (ECMAException){ // Abfangen wenn noch keine Eventgruppe existiert}i also have a separate variable for the following 2 Mappers for the Linking for usage in “No value When...”try { if (typeof variables.LinkedEventGroupID !== 'undefined' && variables.LinkedEventGroupID.length > 0) { // the array is defined and has at least one element true; } else true;}catch (ECMAException){ // Abfangen wenn noch keine Eventgruppe existiert false;}As it is obvious i am no Java Professional. I believe there is definitely a smarter solution - but this one works for me at the moment. 😉 Ki
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.