Need to set the Assigned to value from another table assigned to field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 07:08 AM
Hi All,
I have a requirement i need to set the Assigned_to field value on alm_hardware from cmdb_ci_computer assigned_to.
we have a catalog item in the variable name called ( serial_number_all ) which is having name of asset. that asset name populated from cmdb_ci_computer in that that table we have( assigned to ) That value we need to populate to alm_hardware table assigned to.
below is the script in logs I'm able to see the user value but its not set in the assigned to field..
But its not set in assigned to field, Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 02:25 AM
Hi @varma2
Probably, the filter query which you have applied on the table alm_hardware (gr.addQuery('install_status', 3);) is not working. Request you to check the query and retry.
Also, which record in alm_hardware table you are trying to update ?
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 04:16 AM
Hi @Amit Verma ,
The query is working after the log we can able to see the value but we are unble to set that to field.
Please suggest
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 04:31 AM
/* 2.1 Glide record on Hardware table & update assigned to */
Can you please elaborate on the query you want to apply on the alm_hardware table ?
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 04:23 AM - edited 02-05-2024 04:27 AM
On alm_hardware you are using only this query 'install_status' == 3. Probably all the values are getting updated on a single record.