Copy Device variable value to a field on software installation task table

UjwalaBedarkar
Tera Expert

Hi all,

 

I have created a string field on " sn_sam_software_installation_task" table called as Name, I want to copy the variable called "device" value into Name field So I am using the flow designer but I am getting below error.

 

UjwalaBedarkar_0-1744023231070.jpeg

 

but when I tried to add logs I am getting the correct value.

 

1 ACCEPTED SOLUTION

@UjwalaBedarkar 

if the field is on parent and you are creating record on child table then that field will be inherited so no issue in that.

I hope it's not the reverse

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

14 REPLIES 14

@UjwalaBedarkar 

please share what came in logs

are you getting the correct name and unable to set?

is the name longer than 32 characters?

Try increasing the length to 100 and see

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 below are logs,

UjwalaBedarkar_0-1744036076474.png

 

 

yes I am not able to set value tried with even hardcoded values like "testing"

@UjwalaBedarkar 

so now you are able to get the name as per my script.

since you said it works for some devices and not for some

Did you check the field length is the issue?

your name field is 32 chars and might be the device name is more than that?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

No the devices are within the given length ,is it because of workspace? I have created the field in software asset workspace in default view. should I create the field on parent table i.e asset_task?

@UjwalaBedarkar 

if the field is on parent and you are creating record on child table then that field will be inherited so no issue in that.

I hope it's not the reverse

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader