サービスポータルからサービスを登録/更新を行う方法について

shirakazu
Tera Expert

サービスポータル画面からサービス(cmdb_ci_service)の登録/変更を行えるようにしたいと考えております。

カタログアイテムで申請画面を作成してみたのですが登録/変更することができませんでした。

フローの実行履歴を見ると対象のサービスのsys_idで正しく検索かけているようですがレコードが見つからないようなエラーになっておりました。添付画像

やり方が正しくないのか?そもそもできない?等わかれば教えていただけないでしょうか?

1 ACCEPTED SOLUTION

Hi @shirakazu 

 

So register means you want to create a new Service and also want to change the existing Service. 

 

To create new:

- You need to get the required fields as variables on this form.

- Once you provide all details then you need to use flow

- Create New Record - In table cmdb_ci_service

and map the variables with the fields.

 

Change the Service 

- Create a new varaible and refer to the cmdb_ci_service

- User will select the required Service

- Then get the field in other variable which you want to user to change.

- Then submit the request and in flow use the Update record and map the new variable values to field.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @shirakazu 

 

You mean you want to create a new service in cmdb_ci_service table?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG  san

Thank you for your reply.
Yes, I would like to register and change services(cmdb_ci_service) from service portal.
I tried creating a request using a catalog item, but I can't create or update it.
If you know how to do this, please let me know.

Regards

Hi @shirakazu 

 

So register means you want to create a new Service and also want to change the existing Service. 

 

To create new:

- You need to get the required fields as variables on this form.

- Once you provide all details then you need to use flow

- Create New Record - In table cmdb_ci_service

and map the variables with the fields.

 

Change the Service 

- Create a new varaible and refer to the cmdb_ci_service

- User will select the required Service

- Then get the field in other variable which you want to user to change.

- Then submit the request and in flow use the Update record and map the new variable values to field.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

@Dr Atul G- LNG  san


Thank you for your information & support.
I could recreate it using your explanation as a reference and it worked fine.

 

Regards