Jump to content

Service Connections creating duplicating records when toggled


Gareth Cantrell

Recommended Posts

When changing the service connections for a service via the UI, new records are being created in the database.

In the below screenshot from "Database Direct", the original records for service id 13 are h_id's: 7, 8 & 9.

Selecting the "All" button for all permutations in the service has caused additional rows to be created. This has the downside of not allowing connections to see the timeline or comment as expected when we've supposedly allowed collaboration.

I have had to manually delete records from the database using the "data:deleteRecord" API to get this working as expected, so that the database looks like the 2nd screenshot below.

{
	"@service": "data",
	"@method": "deleteRecord",
	"params": {
		"application": "com.hornbill.servicemanager",
		"table": "h_itsm_service_connections",
		"keyValue": ["9","597","600","7","595","598","8","596","599"]
	}
}

image.thumb.png.1ecd574c3e1eb003d1245ab19dbca440.png

Table1: Incorrect

image.thumb.png.d7d46269308cb68e066a6f05c8aaa219.png

Table2: Correct - after running "data:deleteRecord" API

Link to comment
Share on other sites

  • Gareth Cantrell changed the title to Service Connections creating duplicating records when toggled

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...