The CreatorCon Call for Content is officially open! Get started here.

Pattern Discovery - Custom Arributes are not being set in the CI

Aju_84
Mega Guru

I am using the Aruba WAP controller referenced here for the discovery , the discovery works find but for the AP's i am trying to update the Manufacture and Model ID of the Access Point in the CI, but these information are not getting populated. When I tried to enabling the debug and checking the particular step i am seeing the required output and also the discovery logs shows setAttribute with the output of Manufacturer and Model ID. 

Transform Table

Aju_84_0-1698693537577.png

Debug output 

Aju_84_1-1698693546972.png

Discovery Log

Aju_84_2-1698693575970.png

CI output

Aju_84_3-1698693657616.png

 

Ay ideas on what mighe be casuing the issue? 

1 ACCEPTED SOLUTION

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Aju_84 

 

I guess you are enhancing the update set and adding these 2 new fields, if yes, this is expected as the solution is not complete.

 

Those 2 new fields you added in pattern are actually reference fields and pattern will not handle references hence you don't see those values populated at the end of discovery.

 

There are pre post scripts which are needed to transform the values to reference fields and you need to create one such script and add logic there in order to resolve this.

 

You can check my article on the purpose of these scripts and you should be good enough to fix this. You can refer to OOB pre post scripts that handle same scenario.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.

View solution in original post

1 REPLY 1

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Aju_84 

 

I guess you are enhancing the update set and adding these 2 new fields, if yes, this is expected as the solution is not complete.

 

Those 2 new fields you added in pattern are actually reference fields and pattern will not handle references hence you don't see those values populated at the end of discovery.

 

There are pre post scripts which are needed to transform the values to reference fields and you need to create one such script and add logic there in order to resolve this.

 

You can check my article on the purpose of these scripts and you should be good enough to fix this. You can refer to OOB pre post scripts that handle same scenario.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.