Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add CI to an existing application map using Flow Designer?

Yuuki Tamori
Tera Contributor

Currently we have a flow Order Management that creates a new CI when an order task is completed and relates that CI to an existing service map in our flow designer.
In the process, we are thinking of creating a script action to update the application service map based on the following two articles.

If I want to add a new CI to the map while leaving the existing application service map in its current state, what kind of script should I create?(See attached file for an image of the addition to the service map)

 

Article 1 (now community):https://www.servicenow.com/community/itom-forum/issue-creating-manual-endpoint-via-flow-designer/m-p...
Article 2 (Product Document - "Application Service - POST /now/cmdb/app_service/create" section):https://docs.servicenow.com/bundle/vancouver-api-reference/page/integrate/inbound-rest/concept/appli...

1 ACCEPTED SOLUTION

newhand
Mega Sage

@Yuuki Tamori 
I think you should have a try with BusinessServiceManager API.

 

Unify service management by converting manually-created services to application services, populating application services, and adding/removing CIs and connections.
Use BusinessServiceManager methods in global server scripts. You must have the Application Service administrator [app_service_admin] role.

 

https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server_legacy/BusinessServiceManagerAP...

 

Please mark my answer as correct and helpful based on Impact.

View solution in original post

2 REPLIES 2

newhand
Mega Sage

@Yuuki Tamori 
I think you should have a try with BusinessServiceManager API.

 

Unify service management by converting manually-created services to application services, populating application services, and adding/removing CIs and connections.
Use BusinessServiceManager methods in global server scripts. You must have the Application Service administrator [app_service_admin] role.

 

https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server_legacy/BusinessServiceManagerAP...

 

Please mark my answer as correct and helpful based on Impact.

Thank you! This will solve the problem for my team!
However, I have not found such an easy way to do this, I am sorry for the hassle I have caused you.