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.

Copy attachment from record producer variable to record is not working

Renu9
Tera Contributor

I am trying to copy an attachment from variable in record producer to record with the below BR, but its not working

I am using Async insert BR on the table (x_as_request) in scoped app.

In line number 5, im getting 'x_as_request' table in the log.

 

Renu9_0-1713280017902.png

 

In the attachment table, I am seeing the table name as ZZ_YYsc_cart_item and the table sys id is empty. 

I assume table sys id should not be empty . Please help me here attachment is not getting added to record.

Renu9_1-1713280071898.png

 

10 REPLIES 10

Renu9
Tera Contributor

@Ankur Bawiskar  Please help

Ankur Bawiskar
Tera Patron
Tera Patron

@Renu9 

is it going inside the IF statement?

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

Hi @Ankur Bawiskar 

no its not going inside if . I think its because table sys id in attachment table is empty. Pl guide

@Renu9 

the issue is possibly because that query is not working.

try commenting line 6 and see if this works

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