
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 03:56 AM
Hi,
I'm trying to create by code (Not with UI) a Mapped Application Service and its Entry Point using a Script-Background. All the records are well inserted in the corresponding tables (cmdb_ci_service_discovered, cmdb_ci_endpoint_http, sa_m2m_service_entry_point, and svc_ci_assoc); I check them by UI BUT the View Map show an Error (see attached screenshot).
SCRIPT-BACKGROUND:
Solved! Go to Solution.
- Labels:
-
Discovery
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2022 01:06 AM
Steps to automate the service mapping of an Application Service (AS):
- Create the AS record in the Application Service (cmdb_ci_service_auto) table.
- According to the AS Entry Point (EP) type, create a record in the corresponding Endpoint table (cmdb_ci_endpoint_<EP Type>).
- Link the Endpoint record to the AS as an EP in the Entry Point (sa_m2m_service_entry_point) table.
- Reclassify the AS record to the Mapped Application Service (cmdb_ci_service_discovered) table and Populate the Discovered Service. The "Convert to Application Service" UI Action can be very helpful.
- Update the Sa Endpoint Status "sa_endpoint_status" table that the service discovering of the AS start automatically.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 05:29 AM
Hi Omar,
Please check this link:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0958909
Mark Correct or Helpful if it helps.
Thanks,
Yousaf
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 09:10 AM
Thank you Yousaf,
I added at the end of my script the line:
BUT still have the same error and same problem

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2022 10:09 AM
Omar unfortunatly i am not very expert in this domain right now.
Check this doc if it can help and wait for someone more experienced.
Fix errors in individual application service maps
Do mark correct or helpful if you think i helped.
***Mark Correct or Helpful if it helps.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2022 02:29 AM
Thanks Yousaf,
Really, I appreciate your help.
The "Fix errors" link shared is about errors in View Map BUT with my problem the View Map is not displayed
BR.