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.

In MRVS how to get only 1st Category from multiple Model Categories

Shekhar Deshin1
Mega Guru

@Ankur Bawiskar 

 

In MRVS how to get only 1st Category from multiple Model Categories

Under cmdb_model table we have field Model Categories how i can take only first Category and add to MRVS data.

Now adding it takes all the categories.

Example:

Model Categories- Disk,Server,Linux,test

in MRVS i need only first Record to add here is 'Disk' how to get only 1st Value.

 

Thanks,

Shekhar,

 

 

1 ACCEPTED SOLUTION

thats right from client script you can call the script include

Glad I could help! If this solved your issue, please mark it as Helpful and Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****

View solution in original post

5 REPLIES 5

Shekhar Deshin1
Mega Guru

Please find the screen shot of MRVS i am adding for Model and Model Category:

 

Ref Field - Asset details Model - cmdb_model
Ref Field - Model Catgory - cmdb_model_category

For Model Category field i have added Auto Populate
Product Model cmdb_model and dot walk path toe Model Categories.

 

ShekharDeshin1_0-1757181779183.png

Here i am getting multiple categories so user needs only first one like:

Model Categories- Disk,Server,Linux,test

Only it should get the Disk in Model Category.

MRVS Pop up:

ShekharDeshin1_1-1757181840902.png

 

Above code is there but not sure where i can use that code from Client side.