How to Update Business Application form by using catalog item

Nani18
Tera Contributor

Hello Experts,

 

In business application (cmdb_ci_business_app) form having 20+ attributes. Same attributes I have created in catalog item.(to reduce ITIL role usage). 

 

Workflow of this catalog item I want to send approvals with below conditions 

Approval Condition 1 : 

Name(string) , Business Functions (reference) ,  Business Domains(referenced to business_unit table) if these 3 attributes end user is trying to update then approval need to go Business Domains assigned to person.

 

Approval Condition 2 : 

In scope QDIM (select box) , QDIM compliance(dropdown) If these 2 fields end user is trying to update then approval need to go ABC person.

 

Approval Condition 3 :

Application service(referenced to application_service table),Support vendor(reference) , Application URL (URL) if these 3 fields end user is trying to update then approval need to go Application service Assigned to person.

 

Approval Condition 4 :

If user is trying to update Assignment group field then approval need to go current assignment group.

 

Workflow activity :

Once above 4 approvals is approved then at the end we need to update selected Business Application form automatically.

 

How to achieve this requirement.

 

Thanks in advance.

 

Best regards,

Nani.

 

 

7 REPLIES 7

@Nani18 ,

 

So it also contains assigned to field in that table correct?

 

Thanks,

Danish

 

@Danish Bhairag2 

 

Yes... on Business unit form contains assigned to field

Hi @Nani18 ,

 

Please find my responses for the below questions:-

1.How to send approvals to Business Domains ==> Assigned to person - this we can fetch using dot walk something like current.variables.business_domain.assigned_to.toString()

 

2 .In approval condition how can we check which fields are updated with new value which is updated by end user. - Whenever the user enters the business application it should auto populate all the other fields & then what we can do is create some additional hidden fields like a checkbox type & check it via script whenever any changes made to the prepopulated value, this way we will come to know if the value was changed or not

 

3. How to update business update business application form by using script. - Using a simple GlideRecord Query we can achieve this. 

 

I will try to make some time & give u code for 3rd one for 1st n 2nd u need to try out as it is mostly logical.

 

Thanks,

Danish