- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 07:14 AM
Hi Community,
Not able to create a record with complete data in m2m table (sa_m2m_service_entry_point_list) using background scripts.
Kindly help me with the solution.
Thanks in Advance.
Solved! Go to Solution.
- Labels:
-
Event Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 07:23 AM
Hi @Madhan27
In ServiceNow M2M tables connect two other tables via references. That means the fields cmdb_ci_endpoint and cmdb_ci_service are of type "Reference" and NOT "String". You first have to determine the Sys IDs of the respective target records and then assign these Sys IDs to the fields before inserting.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 07:23 AM
Hi @Madhan27
In ServiceNow M2M tables connect two other tables via references. That means the fields cmdb_ci_endpoint and cmdb_ci_service are of type "Reference" and NOT "String". You first have to determine the Sys IDs of the respective target records and then assign these Sys IDs to the fields before inserting.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 08:01 AM
Ty @Maik Skoddow , It worked.