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.

Asset to computer table location update

Abishek1998
Tera Contributor

Hi all,

 

So my use case is,

1. I am creating a hardware entry with serial number.

2. With the same serial number as hardware, I am creating a CI in computer table.

3. So when I am creating the CI, the location should field in Hardware should be populated as the location field in hardware table.

 

I have tried in flow designer but need your help. I am pasting the flow below.

 

1.Trigger

Abishek1998_0-1733123338636.png

2. Look up record

Abishek1998_1-1733123376005.png

3. If condition

Abishek1998_2-1733123984183.png

4.Then 

Abishek1998_3-1733124012494.png

 When I am creating the CI itself, the location present in the hardware should be populated.

 

Please do help. Thanks

 

4 REPLIES 4

Rajesh Mushke
Mega Sage

Hi @Abishek1998,

 

Your requirement is not clear to me,

but based on the given details you wanted to to create the alm_asset entry if the computer record is updated right ?

if yes, then you flow trigger conditions should run on the computer table.

 

If my understanding is not correct please share more details. 



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

No, First I am creating a record in hardware table with serial number and Location details.

Second. I am creating a record in CMDB_CI_COMPUTER table with the same serial as hardware.

So, if I create the Computer record, the location details in the hardware should be populated in the computer record.

how are you fetching the data inputs for creating a record ? i mean, is it a manual import through any transform map ?



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

I am creating the records manually. By clicking the New button